Question

create cell array of individual years from a long time series

I have a matrix which is composed of a mixture of datevec and time series of measurements, e.g. time = datevec(datenum('196...

alrededor de 10 años ago | 1 answer | 0

Question

save figure in a certain size

In the following figure: data = rand(1,365); subplot(121); plot(1:365,data); xlabel('label'); ylabel('label'); ...

alrededor de 10 años ago | 3 answers | 0

Question

plotting data extending one year

In the following example I have a data set that extends over a section of two years. time = datenum('2008-04-17 02:00'):dat...

alrededor de 10 años ago | 1 answer | 0

Question

calculating hourly means of a matrix

I have a dataset in the following format: dd = datenum('2009-04-17 02:00'); ddend = datenum('2009-11-24 12:27');...

alrededor de 10 años ago | 2 answers | 0

Question

same y label on both sides of contourf

From the following example: [C,h] = contourf(peaks(20),10); colormap autumn How would I include the yaxis on the left...

alrededor de 10 años ago | 2 answers | 0

Question

adding vector entry after each element

This is a very basic question but how would I add the elements of a vector like so...: x = [1,2,3,4,5,6]; ans = 3 6 10 15 ...

alrededor de 10 años ago | 2 answers | 0

Question

find the row number of values greater than...

I would like to find in which column a desired number is first located. From the example below: x = [0,1,3,2,5,22,24,1,2,...

alrededor de 10 años ago | 2 answers | 0

Question

interpolating over vectors and matrices

Consider the following example: time = 1/24:1/24:365; period = 0:0.0232:1.964; power = 0 + (1-0)*rand(85,8760); pc...

alrededor de 10 años ago | 1 answer | 0

Question

evaluate the variation in the power of a known periodicity

Consider the following example: t = 1/24:1/24:365; x = cos((2*pi)/12*t)+randn(size(t)); % if you have the signal proc...

alrededor de 10 años ago | 1 answer | 0

Question

analyse specific frequencies in a time series

I have a long data set of water temperature: t = 1/24:1/24:365; y = 1 + (30-1).*rand(1,length(t)); plot(t,y) The s...

alrededor de 10 años ago | 1 answer | 0

Question

spectral coherence between several time series

I need some advice regarding the spectral coherence of several signals. Consider the following example: t = 1:365; A =...

alrededor de 10 años ago | 2 answers | 0

Question

get children of a figure

I have a code below that highlights a defined region in a plot: x = 1:24; a = 1; b = 50; y = a + (b-1).*rand(lengt...

alrededor de 10 años ago | 2 answers | 0

Question

calculate the correlation of a number of time series

If I have a matrix: data = rand(365,5); What is the most appropriate way of calculating the correlation between each col...

alrededor de 10 años ago | 3 answers | 0

Question

calculate mean value for each hour of the day from a time series

I would like to calculate the hourly mean values for the following time series: DateTime = datestr(datenum('2011-01-01 00:0...

alrededor de 10 años ago | 1 answer | 0

Question

solid contour lines for some specific values of a contourf plot

After generating a contourf plot is it possible to draw a solid black line around some specific values? For example: [C,...

alrededor de 10 años ago | 1 answer | 0

Question

calculate monthly averages of time series

I have a dataset which contains measurements taken at discrete intervals for the past ~ 40 years. I would like to calculate the ...

alrededor de 10 años ago | 1 answer | 0

Question

subplot within a subplot

Is there a method for generating a subplot within a subplot? For example: time = 1:168; RawData = cos((2*pi)/12*time)+ra...

alrededor de 10 años ago | 2 answers | 0

Question

literature associated with the periodogram function

I have recently created a periodogram for some data: <http://www.mathworks.co.uk/matlabcentral/answers/42241-spectral-analysi...

más de 10 años ago | 1 answer | 0

Question

spectral analysis for time series data

I am attempting to analyse a time series with spectral analysis and am working through the example shown in: <http://www.math...

más de 10 años ago | 2 answers | 0

Question

generate time series

I would like to generate a time series for one year of hourly values, so for 2011 ti would 8760 values within the series. To mak...

más de 10 años ago | 1 answer | 0

Answered

Calculate difference between two times

Its hard to suggest what you can do from your example. I would suggest converting any dates into julian dates when working in ma...

Calculate difference between two times

Its hard to suggest what you can do from your example. I would suggest converting any dates into julian dates when working in ma...

más de 10 años ago | 0

Answered

A simple question

If you have 60 rows and 3 columns in matrix 'a' then you can find the mean of each row i.e. the first three values as you stated...

A simple question

If you have 60 rows and 3 columns in matrix 'a' then you can find the mean of each row i.e. the first three values as you stated...

más de 10 años ago | 0

| accepted

Answered

How to read the text files sequentially?

The main problem you have here is that you have not stored each of the text file names. The code shown below should solve thi...

How to read the text files sequentially?

The main problem you have here is that you have not stored each of the text file names. The code shown below should solve thi...

más de 10 años ago | 1

| accepted

Question

use of horzcat

What is the use of horzcat? Is there an advantage of using horzcat over manually concatenating arrays horizontally? for example:...

más de 10 años ago | 1 answer | 0

Answered

How do use fopen properly. Everytime I try I recieve an error.

Its hard to say without an example, which I realise is not easy in this case. I suggest to start with the help page. <http://...

How do use fopen properly. Everytime I try I recieve an error.

Its hard to say without an example, which I realise is not easy in this case. I suggest to start with the help page. <http://...

más de 10 años ago | 0

Answered

Save a histogram in a folder and plot it later .

I dont know if this answers your question but you could save then as a .fig file! <http://www.mathworks.co.uk/help/techdoc/cr...

Save a histogram in a folder and plot it later .

I dont know if this answers your question but you could save then as a .fig file! <http://www.mathworks.co.uk/help/techdoc/cr...

más de 10 años ago | 0

Question

omitting pointers when listing folder contents

In order to list folder contents I use: TopFolder = dir('E:\'); Say if I had one file within that specific folder MATLAB...

más de 10 años ago | 2 answers | 0

Answered

How to plot data after being selected in Excel

what command are you using to import the data from Excel? Cant you just import them into your workspace and then specify the var...

How to plot data after being selected in Excel

what command are you using to import the data from Excel? Cant you just import them into your workspace and then specify the var...

más de 10 años ago | 0

| accepted

Answered

Large structures won't save

I doubt that MATLAB is out of memory. You are probable just saving the data incorrectly. Look at <http://www.mathworks.com/m...

Large structures won't save

I doubt that MATLAB is out of memory. You are probable just saving the data incorrectly. Look at <http://www.mathworks.com/m...

más de 10 años ago | 0

Answered

simple question

using ChangesN = find(diff(S)) would demonstrate where the value was changing and then to see how many time this happen...

simple question

using ChangesN = find(diff(S)) would demonstrate where the value was changing and then to see how many time this happen...

más de 10 años ago | 1

| accepted