Question

I have a map of different colors, I need all z values from greater than 0 to be red, all zero values to be white, and all below zero values to be blue

color specifications imagesc(z) cmap = [1 0 0 ; 0 1 0 ; 0 0 1] ; colorbar colormap(cmap) I applied the code above, but i...

2 months ago | 2 answers | 0

Question

I have a list of 120 elements in a column, and I need to sum each 12 elements and then sum together the next 12 so from the 120 values I will have 12 different sum values.

I just need a for loop to get the sum of each 12 elements in the column for 10 consequative times.

2 months ago | 2 answers | 0

Question

I have a row of 1308 values and I need the total every 12 rows. So I need the sum of rows 1-12 and then again for the next 12 numbers

1 1 1 5 5 1 1 1 10 1 1 1 so basically I need the sum of all these numbers in this entire column for the 12 rows an...

2 months ago | 1 answer | 0

Question

how to plot two .m files on one graph

This is one of my files File2=csvread('secondhalf.CSV') % samplmean=mean(File2) % std(File2) averageY2 = mean(File2); s...

2 months ago | 1 answer | 0

Question

Plotting two .m files on one graph

I keep plotting 2 .m files on one graph but they keep plotting on separate graphs. I used hold on on one of the files. File2=...

2 months ago | 1 answer | 0

Question

Seperate yyyymm to mm-yyyy

I uploaded a table with one of the columns showing yyyymm, How do I get tha column in the mm-yyyy format

3 months ago | 1 answer | 0

Question

How to separate month and year?

Hi, I have two columns of year and month data sand data The year and month data looks like this 199701, so I want to make ...

3 months ago | 1 answer | 0

Question

Seperate Matlab data for my text file

I have data where the year and month are stuck together, as seen 180001, should be 01 1800, how do I seperate that?

3 months ago | 1 answer | 0

Question

Index exceeds matrix dimensions

char_date_start= char(date_start); char_date_end = char(date_end); yearRange = str2num(char_date_start(1:4))+1:1:str2num(char_...

4 months ago | 1 answer | 0

Question

Hi I am having a hard time using the getfield. It says there is an error.

The error says to use dynamic field names with structures instead of GETFIELD. %% %%% load the latitude and longitude files (F...

4 months ago | 1 answer | 0

Question

Define start and end dates when selecting from file

%%% define the start and end dates for your data in YearMonthDay formant, % i.e, "October 1, 1982" should be formatted as "1982...

4 months ago | 1 answer | 1

Answered

Finding the mean of my entire data

Yes, my data has a bunch of rows and columns and I want to find the mean of all the datapoints. I keep using mean(file_name) but...

Finding the mean of my entire data

Yes, my data has a bunch of rows and columns and I want to find the mean of all the datapoints. I keep using mean(file_name) but...

1 year ago | 0

Question

Finding the mean of my entire data

How do I find the entire mean of all my data points

1 year ago | 3 answers | 0

Answered

Data not appearing only the words are

It worked earlier with netcdf that is why I am confused.

Data not appearing only the words are

It worked earlier with netcdf that is why I am confused.

1 year ago | 0

Question

Data not appearing only the words are

I was getting data (numbers) earlier but now im just getting these statments, how do I get my rows and columns of numebrs again?...

1 year ago | 2 answers | 0

Question

Finding a mean for all my data

Hi, How do I find the mean of all the data given in rows and columns.

1 year ago | 2 answers | 0

Question

How to separate into different groups?

I have data that is long and it has different groups inside the data, the different groups are separated within the column by sp...

1 year ago | 2 answers | 0

Answered

How to separate into different groups?

<</matlabcentral/answers/uploaded_files/140733/Screen%20Shot%202018-11-11%20at%201.33.21%20PM.png>>

How to separate into different groups?

<</matlabcentral/answers/uploaded_files/140733/Screen%20Shot%202018-11-11%20at%201.33.21%20PM.png>>

1 year ago | 0

Answered

How to separate into different groups?

each group is between the yellow to yellow (space to space). I want to find the total rain, "BBYPrecip" column, but I want to fi...

How to separate into different groups?

each group is between the yellow to yellow (space to space). I want to find the total rain, "BBYPrecip" column, but I want to fi...

1 year ago | 0