Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 4 answers | 0

4

answers

Question


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

meer dan 10 jaar ago | 2 answers | 1

2

answers

Question


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

meer dan 10 jaar ago | 2 answers | 0

2

answers

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 4 answers | 0

4

answers

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 4 answers | 0

4

answers

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 2 answers | 0

2

answers

Question


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

meer dan 10 jaar ago | 2 answers | 0

2

answers

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 0 answers | 0

0

answers

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 0 answers | 0

0

answers

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 1

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 0 answers | 0

0

answers

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer