Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 4 risposte | 0

4

risposte

Domanda


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 ...

quasi 10 anni fa | 2 risposte | 1

2

risposte

Domanda


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...

quasi 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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 ...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 4 risposte | 0

4

risposte

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 4 risposte | 0

4

risposte

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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...

quasi 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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 ...

quasi 10 anni fa | 0 risposte | 0

0

risposte

Domanda


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...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 10 anni fa | 0 risposte | 0

0

risposte

Domanda


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...

circa 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

circa 10 anni fa | 1 risposta | 1

1

risposta

Domanda


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 ...

circa 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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 ...

circa 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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 ...

circa 10 anni fa | 0 risposte | 0

0

risposte

Domanda


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 < ...

circa 10 anni fa | 1 risposta | 0

1

risposta