Pregunta


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

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 12 años hace | 2 respuestas | 1

2

respuestas

Pregunta


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

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 12 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 12 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

alrededor de 12 años hace | 6 respuestas | 1

6

respuestas

Pregunta


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

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


cell into a cell
I have a 1x3 cell called 'Data' where each of the cells are made up of a 2x1 cell. I want to combine 'Data' with another 1x3 cel...

más de 12 años hace | 2 respuestas | 0

2

respuestas

Pregunta


vector of decimal day
Is it possible to create a vector of decimal days? I want to generate a time vector which starts and ends at specific dates ...

más de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


combining cells
How is it possible to do the following but with a faster method i.e. not having to type each individual cell: a = [Names1{1...

más de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


correlation pairs
The following code calculates the correlation between 2 vectors: clear all %generate fake data LName={'Name1','Na...

más de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


which toolbox
I have been told that in order to complete some task I require the statistics toolbox, how do I find If I have it? The version t...

más de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


xlsfinfo question
I have the following script for gathering information about Excel files under investigation: clear all pathName='F:\path...

más de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


corrcoef command
If I need to find the correlation between two vectors by using corrcoef, is it possible to use it if nan appears in the data? an...

más de 12 años hace | 2 respuestas | 0

2

respuestas

Cargar más