Answered
Filled contour plot colormap
Tell contourf to use more colours — Levels = hcf.LevelList colormap(parula(numel(Levels)) and the individual patches become ...

5 years ago | 0

| accepted

Answered
Is that the correct way to plot the graph ?
It plots ‘t’ correctly and plots it — plot(n1,ts1,'LineWidth',1); however the sprintf is not going to produce anything becaus...

5 years ago | 1

| accepted

Answered
Plotting Two Consecutive Columns of Matrices
First a (4 x 202) matrix defines a matrix of 4 rows and 202 columns. Assuming that it’s actually a (202 x 4) matrix, perhaps so...

5 years ago | 0

| accepted

Answered
Is it appropriate to use ranksum to compare statistical means for time series data?
I have a textbook that discusses it briefly, and it appears to be a subset of the rank-sum test, with a different calculation of...

5 years ago | 0

Answered
How to shade a graph (full and some part)?
Try something like this — y = linspace(0,10); % Assume Row Vectors (Actual Data Not Pr...

5 years ago | 1

| accepted

Answered
Non-Linear Regression of 4 Independent Variables and 1 Dependent Variable
This is relatively straightforward to do. The indpendent variables must all be in a matrix (I prefer column-orientation, so I a...

5 years ago | 0

Answered
Why does polyfit/polyval not work for fitting a 2nd degree polynomial to my dataset?
Nothing is wrong. The data simply need to be sorted in order to plot the regression equaiton correctly. Try this first — L...

5 years ago | 2

| accepted

Answered
Is there a way I can convert image (pixel) values ​​to Raman shift using MATLAB?
They appear to me to be different data. However, filtering out the high-frequency noise is likely as close as it is possible ...

5 years ago | 1

Answered
Add rows to table, not append
One approach is to duplicate the table by first moving everything from the second row to the end down one, then inserting the ne...

5 years ago | 0

Answered
Trying to change plot style
‘Trying to display correlogram as the picture seen below what do I have to add to my code:’ The plot in the documentation is ...

5 years ago | 0

| accepted

Answered
plot 3 D graph when dimension of matrices doesn't agree
Just make them match! Try this — u=[2.22044604925031e-16 0.0166288189049042 0.0642880296655506 0.136295894416653 0.221516...

5 years ago | 0

| accepted

Answered
Trying to plot correlogram of time series data
Essentially all physiological variables are lognormally distributed. This is inutitively obvious because physiological variable...

5 years ago | 0

| accepted

Answered
CAN ANYONE SAY THAT WHAT IS MY PROBLEM IN THIS CODE? HOW CAN I SOLVE IT ?
Well, obviously it’s being run without any (or enough) input arguments. The most likely cause is that it is being run as a sc...

5 years ago | 0

Answered
bode() yields wrong result
There is a typographical error in ‘f2’ and correcting it produces the desired result — s = tf('s'); f1 = 0.99 * 18.88; f2 ...

5 years ago | 0

| accepted

Answered
Increase outer position width while keep inner position unchanged
I am not absolutely certain what the desired result is, however here is an illustration (although the online Run feature is not ...

5 years ago | 0

| accepted

Answered
Determining 1, 2 and 3 sigma radii for a bivariate Gaussian histogram
If the point positions are in matrix format (or can be interpolated to matrix format using griddata or a similar function), the ...

5 years ago | 0

| accepted

Answered
plotting graph with multiple uknown variables
If the objective is to determine those parameters from data, it will be relatively straightforward to adapt the approach in Curv...

5 years ago | 0

Answered
Leged for multiple subplots
I cannot run the posted code without the included data. However this is a relatively straightforward problem. See: Plotting ...

5 years ago | 1

| accepted

Answered
Extract Data between two time points
Much depends on what the times are. Example — tv = linspace(0, 200, 500); % Tim...

5 years ago | 1

| accepted

Answered
How to Create a matching x vector for plot
I can’t run the code because I have no idea what the arguments are. That aside, try this — x = linspace(0,12,numel(y)); pl...

5 years ago | 1

Answered
find peak in data
Use either the findpeaks or islocalmax funcitons. The islocalmax function returns a logical vector, so to get the numerical ind...

5 years ago | 0

Answered
How do I plot this graph?
One approach, using the Symbolic Math Toolbox — syms x y=(11*x+2)/(2*x^3-1); figure fplot(y, [-10, 10]) grid .

5 years ago | 2

Answered
why my code gives different result then the formula
Nothing wrong, just that to get it to appear in polar coordinates, the surface data need to be processed first with the pol2cart...

5 years ago | 0

Answered
Volume Viewer App doesn't recognize MxNxP matrices
The BSOD problem could be Win 10. It’s not MATLAB, since I've had the same problem one one computer (desktop) while never on my...

5 years ago | 0

Answered
D bounded by y=(x-7)^2, y=7, x=0, y=0
This is the essence of the plot — x = linspace(0, 10); y1 = @(x) (x-7).^2; y2 = @(x) ones(size(x))*7; figure plot(x, y1(...

5 years ago | 1

| accepted

Answered
Why does pzoptions.FreqUnits have no effect on pzplot?
The options sturcture is being apploied correctly. To see this, it’s necessary to compare the default ‘rad/sec’ plot with the ‘...

5 years ago | 0

Answered
trouble coding for ODE's
The code works as far as it goes. The code needs to include initial conditions for and as separate parameters (call them and...

5 years ago | 0

Answered
Why does MATLAB give an error with this instruction? x(0.14*100)=5;
There was a detailed discussion on a closely-related topic recently in Why doesn't 'find' function work properly? The problem i...

5 years ago | 1

Answered
I need to create a vector from a symbolic polynomial function,but when i use sym2poly command, matlab tells me it is not a polynomial, how should i do?
One option is to use the coeffs function — syms c1 c2 c3 sympref('AbbreviateOutput',false); f1=(497*c1^2 + 497*c2^2 + 497*c...

5 years ago | 1

| accepted

Answered
How to program a click stimulus?
The Fourier transform of a square wave pulse is , so use that to synthesise the click — Fs = 44100; ...

5 years ago | 0

| accepted

Load more