# Em

**Statistics**

**MATLAB Answers**

**26** Questions

**0** Answers

RANK**234,412**

of 271,448

REPUTATION**0**

CONTRIBUTIONS

**26** Questions

**0** Answers

ANSWER ACCEPTANCE **
46.15%
**

VOTES RECEIVED**0**

RANK

of 18,303

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 119,953

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

Why are the colours in the legend different?

Can anyone see why my legend might not be appearing correctly? plot(powerpc,SR09depth100mms,'-o','color',[1 .78 .1...

3 months ago | 1 answer | 0

### 1

answerQuestion

Same colour scale for scatter and line plots on same graph - different groups of data

I have 2 sets of data (denoted by 250 and nothing at the end of the string) My 2 problems: I'm trying to make line plots throu...

9 months ago | 1 answer | 0

### 1

answerQuestion

Line of best fit not plotting correctly

Hi, When I use the graph app to find a line of best fit to my data, everything seems to be working fine (see attached image)....

9 months ago | 2 answers | 0

### 2

answersQuestion

Strange function fit to data points- sorting by first column vals?

Hi, does anyone have any idea why my function has such a strange shape? In the modelling app I'm not getting this. I think...

9 months ago | 1 answer | 0

### 1

answerQuestion

how to plot shorter dataset using 'hold on'

Hi, I have a dataset and want to plot a line of best fit to the beginning of the data which is the only part where it fits. ...

9 months ago | 1 answer | 0

### 1

answerQuestion

how to remove uncertainty from data in order to plot it

Hi, I have a dataset consisting of a array of strings with a number and uncertainty e.g."2.19479E-8 ± 2.46286E-10" I wan...

9 months ago | 2 answers | 0

### 2

answersQuestion

measuring local slope from scatter plot data and replotting this value

Hi, I want to make a plot of Ln[dLn(c)/dLn(x)] vs Ln(x) where I have measured c at different irregularly spaced x and the c...

10 months ago | 0 answers | 0

### 0

answersQuestion

can't find line of best fit from simple code

I can't get a line of best fit to my data using the code from the matlab polyfit page. Does anyone know what might be going wr...

11 months ago | 1 answer | 0

### 1

answerQuestion

numerical array is being saved as string

I have a numerical array which is saved somehow as a string - when I get Matlab to return the variable, all the numbers are in s...

11 months ago | 1 answer | 0

### 1

answerQuestion

ylim error "Array indices must be positive integers or logical values"

Hi everyone, When I try to set the y axis limits using the code below, I get an error message. Please could someone suggest w...

11 months ago | 1 answer | 0

### 1

answerQuestion

how to change colors of lines in a plot to exist on a scale

Does anyone know how to change the colours of lines in a plot so that they exist on a scale? My current code: plot(powerp...

1 year ago | 1 answer | 0

### 1

answerQuestion

Unexpected resul when trying to plot from array "empty double row vector"

Hi everyone, When I try to plot the following: x305a=table2array(x305); x305a(404:end,1) I recieve this >> x305a(1,404...

1 year ago | 1 answer | 0

### 1

answerQuestion

graph format for Applied Physics Letters Journal papers

Hi, does anyone know if there is an approved format for Matlab created graphs in Applied Physics Letters journal papers or if...

1 year ago | 1 answer | 0

### 1

answerQuestion

error message 'The end operator must be used within an array index expression.'

Hi, When I try to plot plot(H20Vs{1:end,1},H20Vs{1:end,2}) hold on plot(M20Vs{1:end,1},M20Vs{1:end,2}) hold on plot(N20...

1 year ago | 0 answers | 0

### 0

answersQuestion

legend label for subplots

In my figure I have 6 subplots, each displaying the same set of conditions - so I only really need one legend label for all of t...

2 years ago | 1 answer | 0

### 1

answerQuestion

Plotting swept data in 3D plot without link between sweeps

Hi everyone! I want to plot my data in 3D without a link between sweeps. This is my current code. M0dBmto15dBm_0off...

2 years ago | 0 answers | 0

### 0

answersQuestion

How to perform the same actions on a matrix that is broken up into sections?

Hi everyone, I have a matrix where one column has values '1,1,1,.....1,2,2,2.....2,3,3,3..... etc). I want to divide the matrix...

2 years ago | 1 answer | 0

### 1

answerQuestion

plotting data of different x values but same number of data points on the same plot

I have 2 sets of data that I want to plot on the same axis. One set of data runs from -23 to 23 and the other runs from -20 to 2...

2 years ago | 0 answers | 0

### 0

answersQuestion

table2array gives string array when contents are numbers

Whenever I try to convert an table of numbers into an array, instead I will get a string array with all my numbers listed inside...

2 years ago | 1 answer | 0

### 1

answerQuestion

Plot a 3D matrix (1 dependent & 2 independent variables)

I have a matrix with 2 independent variables (X and y) which have given data. I want to plot this data with X and Y (in the X an...

2 years ago | 1 answer | 0

### 1

answerQuestion

Undefined function or variable 'filename'

Hi everyone, Whenever I try to execute my .m file, I get the error message popping up: "Undefined function or variable 'filenam...

2 years ago | 1 answer | 0

### 1

answerQuestion

dynamic variable error 'Argument to dynamic structure reference must evaluate to a valid field name'

Hi, I get this error message appearing from the line indicated. Can anyone suggest why this might be happening? Thanks! i=x...

2 years ago | 0 answers | 0

### 0

answersQuestion

how to plot the mean of values from swept data

Hi everyone, I have a array of data where I ramped one variable and measured another a number of times. I would like to find th...

2 years ago | 1 answer | 0

### 1

answerQuestion

Saving to GitHub repo from MATLAB command line

Hi, I'm new to github and I want to use it to save my matlab code from the commandline on my mac. I'm sure there must be some s...

2 years ago | 1 answer | 0

### 1

answerQuestion

specifying the axes limits separately for 2 sets of data on the same plot

I'm using yyaxis left/right to plot different graphs together and I want to change the axes limits for one side. ylim does ...

2 years ago | 1 answer | 0

### 1

answerQuestion

creating a new matrix without certain rows with elements below a certain value

I want to create a new matrix which is has the same values as my original matrix, M, minus those rows whose first column values ...

2 years ago | 1 answer | 0