提问


Looping through a 3D matrix
Hi, I have this code below but I need to make one column for each from 1 to 39 by vertically catenating. The last two lines a...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Remove NaN from a matrix
Hi, I have matrix B = (366 x 39) and has NaN values in every column. How can I remove NaN and obtain the mean of every column...

10 years 前 | 4 个回答 | 0

4

个回答

提问


Remove zeros and perform calculation with non-zero elements
Hi, I have a array of B with 403 elements (403 x 1). Some of the values are qual to zero but I want to remove the zeros from ...

10 years 前 | 2 个回答 | 1

2

个回答

提问


creating a data array from a matrix
Hi, I have matrix1 of 39 x 39. I need to create X and Y arrays by reading elements from rows and columns of matrix1 in a cert...

10 years 前 | 2 个回答 | 0

2

个回答

提问


Plot cross-correlation 1:1 scatter plot
Hi, I need to plot cross-correlation in a 1:1 scatter plot as shown below. Size of my matrix is 39 x 39. Can someone help me ...

10 years 前 | 1 个回答 | 0

1

个回答

提问


scatterplot shows RowIDs as points and points as a color map
<</matlabcentral/answers/uploaded_files/13385/scatter.jpg>> Hi, I would like to plot a scatter plot but I would like to sh...

10 years 前 | 1 个回答 | 0

1

个回答

提问


for loop indexing and skip numbers
Hi, I need to include for loop in MATLAB to start with 2:13. But I need to start with 2,3,4 and skip 5 and again 6,7,8 and sk...

10 years 前 | 4 个回答 | 0

4

个回答

提问


Writing an output to a text file
Hi, I was able to develop the code below. But in the command window I can see the output the way I want to produce. But the t...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Chnage number display format
Hi, The numbers in the first column of my output writing to a text file shows like 3e+006. But I want to display like 300...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Creating a text file to specific format
Hi, I have a matrix called data (3652500 x 3). But data matrix dont have the header (i.e. names). I want to insert column...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Write a matrix to a text file with a space between columns
Hi, Does anybody know to write an matrix (3652500 rows and 3 columns) to a text file with a space between columns? I have MAT...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Open multiple files in different sub-folders with same starting file name
Hi, I have a multiple files I need to read in 39 sub-folders in Home directory. For example: Home\folder1\Output_1 Home\f...

10 years 前 | 1 个回答 | 0

1

个回答

提问


I am getting an 'Unable to open file.' error with importdata?
Hi, I am trying to open a text (sample.txt) file in MATLAB using importdata function. But I am getting an error for the follo...

10 years 前 | 4 个回答 | 0

4

个回答

提问


Reading a large text file with 3652500 rows and 8 columns
Hi, I have a text file without headers.I have 3652500 rows in the text file. How can I read this text file using MATLAB. Ther...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Reading a text file without headers
Hi, I have a text file without headers and starting as shown below with spacing. I have 3652500 rows in the text file. How ca...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Variable for a matrix
Hi, I have to find mean from Trans1WW to Trans39WW. So, how can i make a variable so that I can include in a for loop. St1...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Catenate columns in a matrix to one column
Hi, I have May_Daily matrix (31 x 13). I need to vertically catenate into one column. I have the following code but it does n...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Assigning a variable for matrices
Hi, I need to repeat the following calculation for S1, S2 upto S39 by changing the name S (1,2,...39). How can I assign a var...

10 years 前 | 2 个回答 | 0

2

个回答

提问


for look and store in a 2x2 matrix
Hi, I have this for loop and it's working fine. But the output (A) is a 2x2 matrix. How can i store the outputs in A1,A2....A...

10 years 前 | 2 个回答 | 0

2

个回答

提问


Insert values for every after 4th cell in a row
Hi, I have Z=nan(1:10000). Also, I have Matrix2=(1 x 2499) which has values. I need to insert values of Matrix2 in Z but in e...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Remove elements from an array
hi, I have row IDs (or row numbers) of an array. i.e. k=[60:1462:3652136]. I have my YY array [3652500 x 2]. How can I remove...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Insert cell values to a matrix
Hi, I want to insert cell values in [2499 x 1] array to 60th row of 366 x 10000 matrix of 1:4:10000 columns. How can I do in ...

10 years 前 | 0 个回答 | 0

0

个回答

提问


select selected numeber of rows from an huge array
Hi, I need to select 365 (366,:) rows from array of [3652500 x 2] and write a matrix [366 x 10000]. Can somebody help me wi...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Loop through a matrix
hi, I have a 3652500 x 2 matrix. That is reprsenting days of the years from 3000 to 12999 years (total 10000 years of data) o...

10 years 前 | 0 个回答 | 0

0

个回答

提问


Open multiple .WTD files and create a matrix to perform calculation
Hi, I have 39 .wtd files (see a sample of attached file) and need to read the 1st and 4th columns. Then I need to create a d...

10 years 前 | 1 个回答 | 0

1

个回答

提问


extract portion of netCDF file based on latitide and longitude
Hi All, I need to extract grid data from a nectCDF file. For example, if I provide the spatial extents in terms of latitude a...

10 years 前 | 1 个回答 | 1

1

个回答

提问


Check values using if condition for each element of two rows in a matrix
Hi, I need to check values of each element of rows (2,:) and (1,:), (3,:) and (2.:) and so on upto 8 rows. The matix size is ...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Euclidean distance explanation for a matrix
A B C D 1 0 93.0000 12.0000 9.0000 2 14.0000 102.0000 75.0000 33.0000 3 ...

10 years 前 | 1 个回答 | 0

1

个回答

提问


Read a netCDF file and extract the precipitation values for the cordinates (lat,long)
Hi, I was able to read the netCDF file and see the precipitation values in the file. I have a matrix of (lat,long) of 66x118 ...

10 years 前 | 0 个回答 | 0

0

个回答

提问


Convert Matrix to binary format
Hi, I have a matrix of (365,40) precipitation values. I need to convert it to binary matrix format to obtain zeros (0) for < ...

10 years 前 | 1 个回答 | 0

1

个回答