Pregunta


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

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Respondida
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...

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 0

| aceptada

Respondida
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...

casi 11 años hace | 0

| aceptada

Pregunta


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 = ...

casi 11 años hace | 3 respuestas | 0

3

respuestas

Respondida
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 ...

casi 11 años hace | 1

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

casi 11 años hace | 0

Pregunta


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-...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 2 respuestas | 0

2

respuestas

Respondida
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...

casi 11 años hace | 1

| aceptada

Pregunta


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); ...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

casi 11 años hace | 1 respuesta | 1

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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....

casi 11 años hace | 1 respuesta | 1

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Cargar más