# Em

**Statistics**

**MATLAB Answers**

**25** Questions

**0** Answers

RANK**220 713**

of 258 197

REPUTATION**0**

CONTRIBUTIONS

**25** Questions

**0** Answers

ANSWER ACCEPTANCE **
48.0%
**

VOTES RECEIVED**0**

RANK

of 17 794

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 110 342

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

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

3 månader 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)....

3 månader 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...

3 månader 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. ...

3 månader 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...

3 månader 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...

3 månader 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...

4 månader 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...

4 månader 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...

4 månader 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...

6 månader 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...

7 månader 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...

8 månader 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...

8 månader 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...

ungefär ett år 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...

ungefär ett år 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...

mer än ett år 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...

mer än ett år ago | 1 answer | 0

### 1

answerQuestion

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

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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 ...

nästan 2 år 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 ...

nästan 2 år ago | 1 answer | 0