Question

Select points inside a polygon

I have 96 points (longitude and latitude); each point is a center of 0.5 x 0.5 pixel (box), on the other hand, I have a polygon,...

3 years ago | 3 answers | 0

Question

Plot a box around set of points

Dear all, I would be grateful if you can tell me how I can create a 0.5 x 0.5 box around each point that I have. I want each poi...

3 years ago | 1 answer | 0

Question

Create a box around points and use in inpolygon

Dear all, I used this code below in order to select the points that are placed in/on the polygon which is correct and gave me t...

3 years ago | 1 answer | 0

Question

Problem with adjusting custom colormap and colorbar

Hello everyone How to adjust a color bar in this way? lower than 0.05 = white 0.05 ~ 0.1 = red 0.1 ~ 0.2 = yellow 0.2 ~ ...

3 years ago | 1 answer | 0

Question

How to store the output of a function?

I used a function from FEX, when it's run the output is showing in the command window but nothing adds to workspace. Is any way ...

3 years ago | 1 answer | 0

Question

Question about Anderson-Darling (adtest)

I want to check if two data sets have similar distribution. I would like to use Anderson-darling test in order to do that, But a...

3 years ago | 2 answers | 0

Question

How to plot something like this?

Hello everyone, Assume that I have this 3 datasets (A, B, C) and I want to have a plot like this (please kindly ignore the whi...

3 years ago | 0 answers | 1

Question

Change the color of each group in boxplotGroup

I used Adam Danz's boxplotGroup to making two groups of box charts; data = {rand(100,2), rand(100,2)+.2, rand(100,2)-.2}; box...

3 years ago | 1 answer | 0

Answered

How can I use some downloaded function?

Hello In order to use downloaded function you can click on the Set Path in the home menu: And then click on the add folder ...

How can I use some downloaded function?

Hello In order to use downloaded function you can click on the Set Path in the home menu: And then click on the add folder ...

3 years ago | 1

| accepted

Question

Reduce the distance between boxplots

Dear all, Here are my boxplots that generated from the below script: figure(); ax = axes(); hold(ax); for i=1:numel(data) ...

3 years ago | 1 answer | 0

Question

How to select different colors and legend for the bar plot??

Hello everyone, I plot this bar plot in order to show the difference between each model (3 models) in condition A and condition...

3 years ago | 2 answers | 0

Question

Save figure with high-quality

Dear all, I want to save my figure with high quality. I need the quality of the figure do not reduce by zooming. I tried someth...

3 years ago | 1 answer | 0

Question

How do I bring the plot in front of the surf?

Dear all, I want to bring the plot on the front of the surf, not behind it. surf(loni, lati, new_precipitation.'); view(2) h...

4 years ago | 1 answer | 0

Question

Plot 2D-histogram for X and Y

Dear all, I have two types of data sets (X and Y) with equal size, which I would like to plot 2D-histogram of them, in order to...

4 years ago | 4 answers | 0

Answered

Obtaining the Bonferroni 95% confidence interval between two variables

Hello, my friend, I learn this a few days ago. In order to gain Bonferroni p-value you should have STATS, you may not hear abo...

Obtaining the Bonferroni 95% confidence interval between two variables

Hello, my friend, I learn this a few days ago. In order to gain Bonferroni p-value you should have STATS, you may not hear abo...

4 years ago | 1

| accepted

Question

How to considering another column in this code?

Dear all, I use this code to get an average of certain columns namely rrr24 row-by-row for all tables inside a cell: C1 = mean(...

4 years ago | 1 answer | 0

Question

Set interval for colorbar

Dear all, I used colormap bone colorbar But I want to have a color bar like this (intervals splite colors like this): I...

4 years ago | 1 answer | 0

Question

What is the variable names of c in Kruskal-Wallis test documentation?

Dear all, I read the documentation of Kruskal-Wallis test; somewhere in it is talking about c = multcompare(stats) In this p...

4 years ago | 1 answer | 0

Question

Problem with applying a function (kstest) to cell arrays

Dear all, I want to have the result of kstest (Kolmogorov-Smirnov test) for all arrays in a cell. In fact, I have a 1x93 cell ...

4 years ago | 2 answers | 0

Question

A question about checking the significant difference between data sets

Dear All, I have 3 columns of data (C1, C2, C3) which represents modeled precipitation values (360 rows) using three different ...

4 years ago | 1 answer | 0

Question

Set lower than 0.1 values to zero in tables that stored in a cell

Dear all, In a 1x3 cell containing three (28x6) tables; inside tables how I can set each value that lower than 0.1 to zero in a...

4 years ago | 1 answer | 0

Answered

How to reshape matrix in this way?

Hello, Try this: Answer = reshape(M.',2,[]).';

How to reshape matrix in this way?

Hello, Try this: Answer = reshape(M.',2,[]).';

4 years ago | 0

Question

Multiply values by the number of days in each month

Dear all, I have a 41x35x360 array namely C. So the C has 360 pages; while 360 represents months from 1-1-1989 (to 12-31-2018 w...

4 years ago | 2 answers | 0

Question

How to add value to tables (inside a cell) from the other array?

Dear all I have an array 1x4 (namely point) and a cell 1x4 (namely C). In the C I have 6x1 tables. I want to respectively copy ...

4 years ago | 1 answer | 0

Answered

How do I plot this?

Try this plot (a, 'color', 'blue') hold on plot(b,'color', 'red') hold on plot (c,'color', 'yellow') hold off If you want...

How do I plot this?

Try this plot (a, 'color', 'blue') hold on plot(b,'color', 'red') hold on plot (c,'color', 'yellow') hold off If you want...

4 years ago | 0

| accepted

Answered

change y values in figure to names

Hello In your question you said y but it seems you mean x; anyways, Try this: names = {'January'; 'February'; 'March'; 'Apri...

change y values in figure to names

Hello In your question you said y but it seems you mean x; anyways, Try this: names = {'January'; 'February'; 'March'; 'Apri...

4 years ago | 0

Question

Is it possible to bring "grid on" to the front of a figure?

Dear all, Normally when I use the grid on it appears behind my figure, but I need to bring it on my figure. Is it possible? I s...

4 years ago | 1 answer | 0

Question

Is it possible to create this colormap and corresponding colorbar in Matlab?

Hello, I want to use something like this colorbar on my figure: Which you can see every 25 by 25 the color has changed. Now ...

4 years ago | 1 answer | 0

Question

How to create a custom colormap in this case?

I want to know how I can change the color map and corresponding color bar to showing from light blue(#add8e6) to dark blue (#000...

4 years ago | 1 answer | 0

Question

I need correct syntax of interpolation in this case

Hello, I have a 40x32x360 double array. (latitude x longitude x time) which presents precipitation for these latitudes and longi...

4 years ago | 1 answer | 0