Question

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

1 month ago | 1 answer | 0

Question

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

1 month ago | 0 answers | 0

Question

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 months ago | 1 answer | 0

Question

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

3 months ago | 1 answer | 0

Question

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

3 months ago | 1 answer | 0

Question

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

3 months ago | 1 answer | 0

Question

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

3 months ago | 1 answer | 0

Question

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

5 months ago | 0 answers | 0

Question

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

5 months ago | 1 answer | 0

Question

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

6 months ago | 1 answer | 0

Question

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

10 months ago | 1 answer | 0

Question

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

10 months ago | 1 answer | 0