Question

Problem with plotting two x-Axes and y-Axes

Dear all, Here is my plot: I want to convert it to something like this picture below that I found on google: Here is my c...

circa 2 anni ago | 1 answer | 0

Question

Calculating percent of data in table

I have a 1x12 table, Is there any quick way or function to find percentage for each column based on total? for example: data =...

circa 2 anni ago | 1 answer | 0

Question

Grid data interpolation to find value in scattered points

Hello Everyone I have a grid data set (0.5 x 0.5 latitude x longitude) which each grid represents the average value for that gr...

circa 2 anni ago | 1 answer | 0

Question

A question about scatteredInterpolant function

Hello everyone, I have a question about interpolating function scatteredInterpolant . Assuming I have some scattered points; t...

circa 2 anni ago | 1 answer | 0

Question

save workspace BUT with another name!

Hey all, I can save all variables in my workspace using this: save workspace After that, it saved by the named workspace.mat....

circa 2 anni ago | 1 answer | 0

Question

How to quickly index the first cell of sets of the array with near similar names?

Hey all, Here is my workspace: I want to know if there is any way to index the first cell of each P_ arrays based on (Jan, Fe...

circa 2 anni ago | 3 answers | 0

Question

How to plot something like this plot?

Hello I want to show the following data: Jan = 5 Feb = 10 March = 5 April = 1 May = 14 June = 12 July = 0 August = 3 S...

circa 2 anni ago | 1 answer | 0

Question

I want to export a figure but with 50% smaller Width and height

Hello all, I saved my figure using the following code set(gcf, 'Units', 'Normalized', 'OuterPosition', [0, 0.04, 1, 0.96]); %...

circa 2 anni ago | 1 answer | 0

Question

Custom grid on a plot

Hey all, I have a plot that represents an error of 7 models in the months. I wanted to split each month's results by a line or...

circa 2 anni ago | 1 answer | 0

Question

Problem with xlim when having date

Dear all, I have a problem with x-axis intervals. I would like to start the x-axis in 1989 and end in 2018; with 5 years inter...

circa 2 anni ago | 1 answer | 0

Question

Calculating average of cell arrays

Hello all, I have a 1 x 3 cell which represents monthly data from 1989 to 2016 for 3 models (each cell arrays is for one model)...

circa 2 anni ago | 1 answer | 0

Answered

How can I remove this empty cell from my structure array?

Hi, In my opinion Since you have a corresponding value for it in the next column, you can delete it, you can change it to the n...

How can I remove this empty cell from my structure array?

Hi, In my opinion Since you have a corresponding value for it in the next column, you can delete it, you can change it to the n...

circa 2 anni ago | 1

Question

Question about rmoutliers () function

Hello, I wanted to remove outliers from my data when outliers defined as values greater than quartile 3+1.5IQR (the interquarti...

circa 2 anni ago | 1 answer | 0

Answered

Insert this equation into a code

Hi, I create it as a function: function r = mifun(a,b,t) %this function calculates r based on a and b and t as inputs % Det...

Insert this equation into a code

Hi, I create it as a function: function r = mifun(a,b,t) %this function calculates r based on a and b and t as inputs % Det...

circa 2 anni ago | 1

Question

For- loop to plot multiple images on a figure

Hello, I have 6 images that I want to insert on the one plot at the same time based on the latitude and longitude that specifie...

circa 2 anni ago | 1 answer | 0

Question

How to actually using image(x,y,c) function?

Dear all, since I read the documentation about image(x,y,c) function and understand a few things, I ask you please tell me how t...

circa 2 anni ago | 0 answers | 0

Question

Display small images on certain x and y (coordinates)

Hello everyone, I have 3 images that I want to plot each one in a certain x and y (latitude and longitude) coordinates. The lat...

circa 2 anni ago | 1 answer | 0

Question

Why image rotates after adding to a figure- how to prevent it?

Hey all, I have a problem, I used this code to add my .png image to the current figure (map of the country), gs = geoshow(A, c...

circa 2 anni ago | 1 answer | 0

Question

I have a transparent .png picture when I add it to the current figure the background of it changes to black!

Hey all, I wanted to add a picture of my current figure. The picture is transparent png but when I added to my figure a black ba...

circa 2 anni ago | 1 answer | 0

Question

Grid line not showing for y-axis

Hey all, the figure that I have is generated via geoshow, that look like this: In order to cut the blank part between 40 to 4...

circa 2 anni ago | 1 answer | 0

Question

How I can view this .tif file?

I have a tif file which represents the altitude for a country, I can simply open it in Esri's ArcGIS (Arc Map), Here is the resu...

circa 2 anni ago | 1 answer | 0

Question

What is the true syntax for export_fig in order to save in a specific folder?

I read almost everywhere of 3rd party Matlab function namely export_fig (downloaded from FEX) documentation But, I don't know ho...

circa 2 anni ago | 1 answer | 0

Question

Save OR open figure with transparent background

Hello, I need to save my pie charts without white background behind it (transparent), I was searched dozens of webpages and tr...

circa 2 anni ago | 1 answer | 0

Question

Plot multiple separate figures

Dear all, I have a table with two rows, I have a code to plot a pie chart for a first row, Now for each row I want to have a s...

circa 2 anni ago | 1 answer | 0

Question

Is it possible to summarize this code?

Hey all, Is it possible to summarize this code below? This code creates a pie chart with 5 equal parts, then checks for city n...

circa 2 anni ago | 2 answers | 0

Question

How to make this pie chart?

Hey all, I want to know is possible to have a pie chart with 5 pies so that I can change the color of each pie that I want? Just...

circa 2 anni ago | 2 answers | 0

Question

Extract first row from cell arrays

Hey all, I have a 1 x 3 cell, which contains tables. In each table there are a lat and lon columns, I want to extract the first ...

circa 2 anni ago | 1 answer | 0

Question

Index nearest vlaue to zero between some negative and posetive values in one row

Hello, I have a table, I want to index the nearest value to the zero in each row; I have some data like -0.009, 0.0025 ( I mean ...

circa 2 anni ago | 1 answer | 0

Question

Comparing rows of a table

Hey all, I have a table, this table represents the value of creation coefficient (CC) and RMSE for 3 of my models. Now in each ...

circa 2 anni ago | 1 answer | 0

Answered

Ignore NaN and -9999 values

Hi, It should be something like this, I learned it yesterday. I assume T is the name of your table: T_new = standardizeMissing...

Ignore NaN and -9999 values

Hi, It should be something like this, I learned it yesterday. I assume T is the name of your table: T_new = standardizeMissing...

circa 2 anni ago | 2