Question

Change bar colors based on date

Hi. I am plotting a bar chart for each month showing the maximum tidal height for that day. I would like to color each phase of ...

3 mois ago | 1 answer | 0

Question

Specify colour when using script ipvd.m

I am using the code attached (ipvd.m) to generate a progressive vector diagram for different data sets on the same figure. Ho...

presque 4 ans ago | 1 answer | 0

Question

Polar plot - plot as a line joining the points rather than like a compass plot

I have a polar plot that looks like a compass plot. The data that is plotted is in the attached file where the data is in col...

presque 4 ans ago | 0 answers | 0

Answered

access data from a table

I solved this using str2double since the data inside the Table was class string.

access data from a table

I solved this using str2double since the data inside the Table was class string.

environ 4 ans ago | 0

| accepted

Question

access data from a table

I am trying to extract data from a table, T. I am reading in the xlsx data with no headers (I am specifically not using xlsread...

environ 4 ans ago | 2 answers | 0

Question

Import data from xlsx file - how to import without a specified range

Hi, I am importing data from an *.xlsx file using xlsread. The range is specified (in my code as 'A3:M4508'). How do I im...

environ 4 ans ago | 1 answer | 0

Question

Write out a cell whith characters and numbers to excel

Hi, I create a 1 x 4 cell where: col 1 = 23 x 20 char (i.e. dates and times) col 2 = 23 x 1 double (data) col 3 = 23...

environ 4 ans ago | 2 answers | 0

Question

How do I used the program stickplot.m

I have downloaded the stickplot.m program from WHOI. The program 'feather plots' or 'stick plots' data with a scale (see atta...

environ 4 ans ago | 1 answer | 0

Question

Error using .* matrix dimensions must agree

I am plotting polar plots of my data. The first polar plot plots fine. The second plot plots fine if I run it on its own but i...

environ 4 ans ago | 1 answer | 0

Question

Scale quiver plots using quiver or quiver2

I have current speed and direction data in 10 min intervals (attached file). I would like to quiver the plots (with time alon...

plus de 4 ans ago | 0 answers | 1

Question

Combining Date and Time variables (class - datetime) into 1 DateTime (class - double) array

I import my data with: Date = dataArray{:, 6}; Time = dataArray{:, 7}; Date as a 'datetime' value with format: 'dd.mm.yyy...

plus de 5 ans ago | 2 answers | 1

Question

2nd y axis on bar chart - label and data labels

I am plotting the total number of observations per direction sector as a bar chart. I have then added another axis to the bar c...

presque 6 ans ago | 1 answer | 0

Question

extracting one data point per day from a time series

I have a time series of predicted water level data (cm), either 3 or 4 predicted values per day (for an entire year). For eac...

presque 6 ans ago | 1 answer | 0

Question

writing out data within a for loop

I am dividing data into sectors and taking the max, mean and count of that sector. I can do this manually but would like to loo...

environ 6 ans ago | 1 answer | 0

Question

Error code 0x800A03EC when using xlswrite

I am trying to write out some data using xlswrite and get the error message: Error using xlswrite (line 220) Excel returned...

environ 6 ans ago | 1 answer | 0

Question

Import excel file with comma for decimal and dates

I have an excel file of dates and water level data (attached). The dates are in format: dd/mm/yyyy hh:mm:ss. The water lev...

environ 6 ans ago | 1 answer | 0

Question

Saving text and data to an excel file

If I have the following text and data: a = {'N', 'NE', 'E'}; b=[1 2 3]; How to I save the text and data as a 2 x 3 matr...

environ 6 ans ago | 1 answer | 0

Question

Excluding rows of data with NaN and writing to a new matrix, using indexing

I have a data matix of 84761 x 8 (an example is attached: EditedWindTempMatrix_eg.txt). I would like to remove the rows that ...

plus de 6 ans ago | 1 answer | 0

Question

Extracting sections of data from a Matrix with Indexing

I have a 84761 x 8 matrix (see attached file as an example of data from the matrix). I would like to extract all of the rows ...

plus de 6 ans ago | 2 answers | 0

Question

Replacing 0 with NaN by indexing into a matrix

I have a data matrix called 'data' of 84761 x 11. (a small selection of the data is attached). I am able to allocate column ...

plus de 6 ans ago | 1 answer | 0

Question

Wind and temperature divided into speed and temp

Is there a function to create a matrix with a count (i.e. number of occurrences) where wind speed goes from 0 m/s to 28 m/s in 1...

plus de 6 ans ago | 2 answers | 0

Question

Interpolate between two lines

I have data at 5m depth and data at 25m depth. I need to interpolate between these two points to get data at 15m depth. data...

plus de 6 ans ago | 1 answer | 0