Question


fprintf of cell array
I am trying to generate text files from the following example: clear all Year = {'2007','2008','2009'}; for i =...

13 years ago | 1 answer | 0

1

answer

Question


obtain information from saved figure
I have a figure saved as 'Temp.pdf'. I would like to obtain the data from this figure within a new session. Some information abo...

13 years ago | 1 answer | 0

1

answer

Question


problem with time series objects
Im using the following to plot a time series plot: x = cell(1,length(Year)); fh = figure; x = cell2mat(Data{1...

13 years ago | 1 answer | 0

1

answer

Question


plotting time series
Is it possible to use the timeseries command in a loop? I use the following code for producing a plot: x = cell2mat(d...

13 years ago | 1 answer | 0

1

answer

Answered
Importing a text with header
by saying lines, do you mean row or column vectors? Either way, try to use dlmread first: M = dlmread(filename) so your...

13 years ago | 0

Answered
area under the graph
Maybe use the area command: <http://www.mathworks.co.uk/help/techdoc/ref/area.html>

13 years ago | 0

Answered
2D color plot with 3 vectors
you could use pcolor(x,y,z). If you need further instruction let me know.

13 years ago | 1

Answered
Importing a text with header
Its hard to say with the example you provided but I think you should be looking at using textscan <http://www.mathworks.co.uk...

13 years ago | 0

Answered
How to label X axis in the form of characters?
set(gca,'XTickLabel',{'data point 1','data point 2'}); where data point 1 and data point 2 will become the name of that par...

13 years ago | 0

| accepted

Answered
Load Command on How to Skip Rows
You could use dlmread <http://www.mathworks.co.uk/help/techdoc/ref/dlmread.html> This will then load the data into matlab wi...

13 years ago | 0

| accepted

Question


xtick string with plot yy
From the following example how would I show the time denoted by 'out' along the xaxis: clear all time = (0:23)'; n = ...

13 years ago | 3 answers | 0

3

answers

Answered
Plot coloured points using plot function istead of scatter
you could do something like: clear all load seamount % example dataset Colors = hsv(length(x));%length of your data ...

13 years ago | 1

Answered
Copy figure - bad quality
try saving the figure from matlab as a .jpg file by typing ff =(C:\My Documents); fnout = [ff, '\FigureName'...

13 years ago | 0

Question


using datenum over several years
Say if I want to find the decimal day of year I would use: clear all StartDate = '2011-01-01 00:00'; EndDate = '2011-...

13 years ago | 1 answer | 0

1

answer

Question


labelling figures
Say that I have 3 subplots and I want to label the first subplot as (a) the second as (b) and the third as (c). I want the label...

13 years ago | 1 answer | 0

1

answer

Question


altering a 2d plot for a time series
This is a rather basic question but here we go. I'm plotting a time series of data, and was wondering if instead of having dates...

13 years ago | 2 answers | 0

2

answers

Answered
Using scripts from File Exchange
Yes, You need to save the file in your matlab directory. So, save the file in a folder somewhere such as my documents\matlab\fil...

13 years ago | 2

| accepted

Question


Correlation values of various time periods
The code below is a simplification to a problem that I am working through: clear all Data.L1 = 1 + (20-1)*rand(8760,1); ...

13 years ago | 1 answer | 0

1

answer

Question


convert a vetor of hours into time
I have a vector which shows hours of the day, it starts at 0 which corresponds to 00:00 and finishes at 23 which corresponds to ...

13 years ago | 1 answer | 0

1

answer

Question


2d line plot overlay boxplot
Is there a way of plotting a 2d line plot over a boxplot? the hold on command doesn't seem to apply for boxplots. If so, how wou...

13 years ago | 1 answer | 0

1

answer

Question


faster way of using fprintf
If I have a large cell array say 10x26 where the first two columns are strings and the remaining columns are all numbers. Instea...

13 years ago | 1 answer | 0

1

answer

Question


boxplot of correlation values from a cell array
Before describing my question I provided the following code, which help me in describing what I'm trying to do: clear all ...

13 years ago | 1 answer | 1

1

answer

Question


updating newer matlab version with toolbox from old
I have 2 versions of matlab, one which is R2011a on my laptop which contains several toolboxes, and R2011b on my pc which contai...

13 years ago | 1 answer | 0

1

answer

Question


gathering data corresponding to a string of dates
I have a vector of temperatures and a cell array of Date/Time. I want to create 4 variables where each variable represents diffe...

13 years ago | 1 answer | 0

1

answer

Question


fprintf filename error
Im using fprintf to write some data onto text files and using the following code to define the text file: for i= 1...

13 years ago | 1 answer | 0

1

answer

Question


running R within matlab
I was wondering if it is possible to work between matlab and R to plot some data. I have a script in matlab which generates a te...

13 years ago | 1 answer | 0

1

answer

Question


using ismember to find the corresponding value
clear all depth = [0,2,4,7,10,13,16,19,22,25,30,35];%depth below surface temp = 0 + 29.*rand(365,12); metaT = 0 + 35....

13 years ago | 1 answer | 1

1

answer

Question


legend in 2d line plot
I'm plotting data in a for loop where I'm looping through two datasets so using plot...; hold on;plot... I only want the lege...

13 years ago | 1 answer | 0

1

answer

Question


taking monthly correlation values
The following example code can be used to calculate the correlation between a data set: clear all FieldName = {'loc1',...

13 years ago | 1 answer | 0

1

answer

Question


function name
Why is it that a function does not work with some names? e.g. I named one of my functions magnuson(PathName) and the function wo...

13 years ago | 1 answer | 0

1

answer

Load more