Question

Selecting parts of gridded data- I Need Help. I want to know it's possible or not?

Hey all hope you have a good time, I have a (1 x 1171) cell which includes tables. Each table has a specific latitude and longi...

21 hours ago | 1 answer | 0

Question

Plot grided latitude and longitude as pixels on map

I want to plot gridded latitude and longitude as pixels on the map, Latitude is 1 x 32 and longitude is 1 x 40 I don't know how ...

1 day ago | 1 answer | 0

Question

Am I doing this right? (a Math formula to Matlab language)

I needed to calculate this formula: So I wrote a function in order to do that: (P is x and P^ is y): function NS = nash_sa...

1 day ago | 2 answers | 0

Question

I wrote a function for a math formula, may I ask you please check my code?

Hey all, For my research, I needed to calculate some formula, So I searched everywhere, including Matlab file exchange and find...

2 days ago | 1 answer | 0

Question

How to modify and improve this for-loop that I wrote?

Hey all, I have a cell that includes some tables. In each table, I have the rrr24 column and PRECIP column. I want to calculate...

2 days ago | 1 answer | 0

Question

Error using tabular/addvars (line 174) Variables must have the same number of rows as the table they are being added to.

Hi, I have two cells, which include tables. I want to create a new cell and merges one-by-one tables into it. For example, the ...

4 days ago | 1 answer | 0

Question

Finding nearest tables based on latitude and longitude columns

Hey all I have two cells; cell A and cell B. Cell A is 11 x 1, and cell B is 200 x 1. These cells include tables. Each table i...

4 days ago | 1 answer | 0

Question

Multiply number of days for each month to data column

Hello, I have a 1 x 10 cell which includes 10 tables. In all tables I have the date column and precip column. Dates are in month...

4 days ago | 1 answer | 0

Question

How to add a sequential number in a column of tables cell?

Hey all, I have a 1 x 1280 cell which includes tables. In all tables, I want to add a number after the word that wrote in the fi...

5 days ago | 1 answer | 0

Answered

Go through the table with a loop and change values

I think you won't need to use for loop. If A is the name of the table, then you can just use: A= readtable('dataset.csv'); A...

Go through the table with a loop and change values

I think you won't need to use for loop. If A is the name of the table, then you can just use: A= readtable('dataset.csv'); A...

5 days ago | 0

Answered

Sub-plots properties

Hello SS, First I recommend reading this useful documentation. In this case you want 4 subplots, so you subplots should be in ...

Sub-plots properties

Hello SS, First I recommend reading this useful documentation. In this case you want 4 subplots, so you subplots should be in ...

5 days ago | 0

Answered

How to add a greek letter as part of the xlabel

Dear H LIU, You need to type like this: xlabel(['{Other part of the sentense}' char(949)]) Further, if you want using subersc...

How to add a greek letter as part of the xlabel

Dear H LIU, You need to type like this: xlabel(['{Other part of the sentense}' char(949)]) Further, if you want using subersc...

5 days ago | 0

| accepted

Answered

Help me in fuzzy??

Hello, Do you have Fuzzy Logic Toolbox? fuzzy is a command in Fuzzy Logic Toolbox. You need to have this toolbox. Type: ver ...

Help me in fuzzy??

Hello, Do you have Fuzzy Logic Toolbox? fuzzy is a command in Fuzzy Logic Toolbox. You need to have this toolbox. Type: ver ...

6 days ago | 1

Question

fillmissing if the amount of NaN smaller than 15% in all table.

Hello, I have a cell named NewC2LatLon. This cell including 1200 tables. I want to check the “precip” column of each table and ...

6 days ago | 1 answer | 0

Question

A problem with using generalized code

UPDATE: I think I found what is the cause of this problem in fact in the last code that I wrote to this question, in this line ...

7 days ago | 1 answer | 0

Question

Eliminate the table inside a cell, if any NaN exists inside that table.

Hey all, I have a 1 x 1280 cell containing tables. I am sure there are some NaN inside some tables. I want to eliminate the ent...

7 days ago | 2 answers | 0

Question

Merge all rows in a cell into one row

Hey all, Here is my 40 x 32 cell. I want to merge all 40 rows into one row. So in the output, I would like to have a 1 x 1280 c...

7 days ago | 1 answer | 0

Question

Add specific date time column to every table inside a cell

Hey all, Here is my cell: I want to add a date-time column for each table. In fact, my date time column is just date.mat. I a...

7 days ago | 1 answer | 0

Question

Add columns to the tables that stored in a cell

Hey all, I have a 40 x 32 cell named Cnew. On the other hand, I have a 1 x 32 table named lat and 40 x 1 table named lon. I want...

8 days ago | 1 answer | 0

Question

Converting all arrays inside a cell to tables

Hello I have a 40 x 32 cell named C. Each element in C has a dimension of 1 x 1 x 336. I want to keep C as a cell but convertin...

8 days ago | 2 answers | 0

Answered

copy data from array to table

Hello, If A is your array and you want to have a table based on it, you can simply usearray2table. Table = array2table(A); If ...

copy data from array to table

Hello, If A is your array and you want to have a table based on it, you can simply usearray2table. Table = array2table(A); If ...

8 days ago | 0

| accepted

Answered

How adding multiples values insiade Excel file ?

Hello Look at this line of your code: simtickx(i) = sum( cell2mat(dat(p,2)); % one ) is missed You don't close a parenthesi...

How adding multiples values insiade Excel file ?

Hello Look at this line of your code: simtickx(i) = sum( cell2mat(dat(p,2)); % one ) is missed You don't close a parenthesi...

9 days ago | 0

Question

Interpolate scattered latitude and longitude (climate) data and plot

Hello everyone, I have a table with 3 columns: latitude, longitude, and climate information. I want to plot these points on my ...

9 days ago | 1 answer | 0

Question

Filter a table based on date (Error using tabular/dotParenReference (line 95) Unrecognized row name '01/00/0000'.)

Hey all, I want to filter a huge table (namely testtable) based on a desired date at the date column. I was read Matlab docume...

9 days ago | 1 answer | 0

Question

Select columns from a table and add them into another table

Hey all, I have C1 and C2. Each one is (1 x 2) means that containing 2 tables inside. I want to copy column numbers 5, 6, and 8...

9 days ago | 1 answer | 0

Question

How to customize the subplots?

I searched a lot and read the documentation in Matlab, in order to plot 6 plot in one figure. Now it is done but really hard to ...

12 days ago | 2 answers | 0

Answered

how to replace missing values from a double inside a cell array?

index=find(A==100000); %found 100000 in the A A(index)=NaN; % Replace them by NaN

how to replace missing values from a double inside a cell array?

index=find(A==100000); %found 100000 in the A A(index)=NaN; % Replace them by NaN

12 days ago | 0

Question

Run this code for every certain columns of tables in a cell and saving the result in new cell

Hi all, I have a cell named C. In the C I have 71 tables. Each table has a column named rrr24. I want to run this code below fo...

12 days ago | 2 answers | 0

Question

Need Help about this for loop

Hey all, I have a very simple issue about saving for loop results in the one variable at the end. I have this code. In the Firs...

12 days ago | 1 answer | 0

Question

Adjust intervals of x-axis in the plot!

Hey all, I have SI and Date which I want to plot them. The Date is in a monthly format from 1989 to 2018 (360 months). I haven...

13 days ago | 1 answer | 0