Community Profile

photo

Jincy


Last seen: 10 months ago Active since 2023

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


How to read '.m' files which is already saved in matlab
I am just find the year by year nanmaean and saved that script by creating a new folder.Now i want to plot polynomial curve fitt...

10 months ago | 2 answers | 0

2

answers

Question


i have total 364 number of .nc files and i want to read only 10 .nc files with lat,lon,time,and soilmoisture.
In this data lat,lon,time and soil moisture are the variables and they all are same for this 10 files except soil moisture data....

11 months ago | 0 answers | 0

0

answers

Question


I want to read 2 nc files which containing soil moisture as variable, but when readin the given code ,it showing some error
file1= 'path of the file1' file2='path of file2' sm= ncread(file1,'sm') ; sm=ncread (file2,'sm') ;

11 months ago | 1 answer | 0

1

answer

Question


how to calculate the mean using loop
i want to calculate the mean value in 2*2 size by creating a loop A = [1 2; 3 4]; % Matrix A B = [2 3; 5 6]; % Matrix ...

11 months ago | 1 answer | 0

1

answer

Question


how could i stack multiple satellite data of soil moisture in to one and find out the nanmean of all files? The size of files is 1440*720. The file is in '.nc' format.
% read the all nc file file = dir('*.nc'); for i = 1:length(file); sm(i) = sm(:,:,i); sm.mean = nanmean(:,:,i)

11 months ago | 1 answer | 0

1

answer

Question


how to create a 2*2 matrix by combining two matrices with size of 2*2 ie A and B are 2*2 and i want to get C also 2*2
A =[1 2;3 4]; B=[2 3;5 6]; C=[A;B] ( should be in 2*2 )

11 months ago | 1 answer | 0

1

answer

Question


How to read the variable in a loop where the satellite data is in 'h5' format? When i am check the code, am little confused. The code is given below
n = 5; for i = 1:n fprintf( 'The value of n is %d/n',i); end

12 months ago | 0 answers | 0

0

answers

Question


how to convert the satellite data to an image
% Load satellite data sat_data = load('satellite_data.mat'); % Pre-process the data sat_data = imadjust(sat_data,[0 1],[0.1 0...

12 months ago | 1 answer | 0

1

answer

Question


how to convert a graph from the satellite data to an image form
% Import satellite data set_data = imread('satellite_data.jpg'); % Reshape the data into an image format sat_image = reshape...

12 months ago | 2 answers | 0

2

answers

Question


how to create a loop to calculate the mean of pixels of satellite data of a specified area like india? pixe size of the data is 1440*720
% Load or create an image image = imread('your_image.jpg'); % Replace with your image file name or path % Determine image si...

12 months ago | 1 answer | 0

1

answer