提问


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

12 years 前 | 1 个回答 | 0

1

个回答

提问


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

12 years 前 | 1 个回答 | 0

1

个回答

提问


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

12 years 前 | 1 个回答 | 0

1

个回答

提问


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

12 years 前 | 1 个回答 | 1

1

个回答

提问


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

12 years 前 | 1 个回答 | 0

1

个回答

提问


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

12 years 前 | 1 个回答 | 0

1

个回答

提问


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

12 years 前 | 1 个回答 | 0

1

个回答

提问


request user input for a number of inputs
At the start of one of my scripts I would like to use the input command for the user to specify some values for a given location...

12 years 前 | 1 个回答 | 0

1

个回答

提问


ranking a cell array
Take the following example: clear all Name1 = {'Data1','Data2','Data3','Data4'}; Data = {6.2,6,3.2,8}; CombnsName ...

12 years 前 | 1 个回答 | 0

1

个回答

提问


text to annotate figure
Is it possible to annotate a plot with text without having to specify the x and y coordinates. I know you can use commands like ...

12 years 前 | 2 个回答 | 0

2

个回答

提问


nicer outcome from fprintf
I'm looking for a better way of saving data into a text file. I'm currently using fprintf, but when the data is saved as a text ...

12 years 前 | 1 个回答 | 0

1

个回答

提问


if statement after use input
Is there a possibility of performing an if statement following an user input. For exampl: Variable = input('type 1,2, or 3 ...

12 years 前 | 2 个回答 | 1

2

个回答

提问


loop through structures and find the correlation
The following example resembles a similar problem that I'm dealing with, although the code below is merely an example, it is str...

12 years 前 | 1 个回答 | 0

1

个回答

提问


plotting in a loop - new figure window
The following example produces a subplot of the 3 variables below (located in a structure): clear all Data.S1 =...

13 years 前 | 3 个回答 | 0

3

个回答

提问


using textscan
Is textscan the correct command to use when importing data from text files into matlab. The command seems to work fine if I only...

13 years 前 | 1 个回答 | 0

1

个回答

提问


naming a structure
clear all FName = {'Data1','Data2','Data3'}; data1 = [rand(32,1),rand(32,1),rand(32,1)]; NewName = {'Location1'}; ...

13 years 前 | 2 个回答 | 0

2

个回答

提问


converting a cell array into a structured array
I've imported some .txt files into matlab using the textscan command, where I now have a variable 'C' which is an 8x4 cell, each...

13 years 前 | 2 个回答 | 0

2

个回答

提问


error when writing a function
When using a function that I have written, matlab returns the error: Undefined function or variable 'Bathymetry' E...

13 years 前 | 2 个回答 | 0

2

个回答

提问


error when using fprintf
can anyone tell me where I'm going wrong here. clear all data = rand(365,1); filename = fullfile('file','test.txt');...

13 years 前 | 2 个回答 | 0

2

个回答

提问


variables form strucutre
I have the following example which expresses the type of problem that I'm trying to solve: clear all textdata = {'Date...

13 years 前 | 1 个回答 | 0

1

个回答

提问


making a function work
I've written the following function which imports .txt files into matlab. The .txt files can either be recorded at hourly interv...

13 years 前 | 2 个回答 | 0

2

个回答

提问


averages of cell array
I have the following script for importing text files into matlab which include hourly data, where I am then trying to convert th...

13 years 前 | 1 个回答 | 0

1

个回答

提问


alter a matrix
I have a matrix ('data') which is composed of day of year in the first column and temperature data in the second column and also...

13 years 前 | 1 个回答 | 0

1

个回答

提问


excel dates
really annoying problem with importing dates from excel into matlab. The dates in excel are in the format mm/dd/yyyy but when I ...

13 years 前 | 0 个回答 | 0

0

个回答

提问


linear fit
When plotting a scatter plot is it possible to add a linear fit to the the graph without having to go into tools-> basic fitting...

13 years 前 | 6 个回答 | 1

6

个回答

提问


tab delimited text file from matlab
clear all a = rand(131400,12); DateTime=datestr(datenum('2011-01-01 00:01','yyyy-mm-dd HH:MM'):4/(60*24):... ...

13 years 前 | 1 个回答 | 0

1

个回答

提问


integration with matlab
How would I solve the following equation for ZV: ZV = integral_{0}^{ZD}(z.*A)dz where ZD = 40; z = [1:2:12];%depth A =...

13 years 前 | 1 个回答 | 0

1

个回答

提问


corrcoef maths
Does anyone have a link to the mathematical background for the corrcoef function in matlab? I want to try and understand how the...

13 years 前 | 1 个回答 | 0

1

个回答

提问


linspace
I want to create a vector which runs from 1 to 260 with increments of 360 between every whole number. I can do this manually ...

13 years 前 | 2 个回答 | 0

2

个回答

提问


vectorization
Can someone give me a push in the right direction regarding vectorising a loop. Is it possible to vectorise any loop? If so, I...

13 years 前 | 1 个回答 | 0

1

个回答

加载更多