MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
How can I zoom in and out of 3-D plots within MATLAB?
himanshusingh91 - 2020-08-06

The following example allows me to zoom in a 3-D plot:     mesh(peaks) axis vis3d zoom(2) But there is no way to zoom out: zoom(-2) ??? Error using ...

Plot fft and peaks on same plot
hemantharma - 2020-08-06

I am having trying to plot the fft and its peaks on the same plot. I have read that passing the frequency vector in findpeaks will allow the second ar...

How can I choose which plots of data to label in a legend for the figure with plots of multiple data sets in MATLAB 7.0 (R14)?
prashantgujjar - 2020-08-05

I am plotting a cosine wave, a sine wave and an amplified sine wave (in that order) on a single plot (figure window). However, I would like my legend ...

Can I put markers on only some of the points in my plot?
Ryanthomas - 2020-08-05

I have a plot that has a lot of points. Putting markers on all the points makes the plot too cluttered; instead of a line made of markers I just get a...

Reduce number of Markers on existing Matlab Figure
johnconnor - 2020-08-05

I have an existing set of figures that I cannot quickly and easily regenerate the plots for since they are created by different set of functions. Ther...

how can I change the current axes in a GUI?
Tanvishah - 2020-08-05

Hi, how can I change the current axes in a GUI? I try to use the line function, but I don’t know how to activate the right axes for plotting in the ...

I need to plot a Dynamic scattered plot. I have vector x and y, and those are coordinates. I need to plot coordinate 1, and then coordinate 2 but coordinate 1 must need to still there.
Amolisharma - 2020-08-05

Hi everyone, i need to do a dynamic plot.I have 2 vectors, x & y. So i have a coordinate (x,y). For example, i have (0,0) , (1,1), (3,3) , (4,4) and s...

What is the code to plot several .dat files together?
hardikisharma2 - 2020-08-04

I have 1000 .dat files and I want to plot graphs from them and save the results in .png format for all the files. How do we do that?...

How to remove the grid from plot
Abigailwilliams - 2020-08-04

How to remove the grid from a pcolor plot ? grid off does not work.   x = linspace(0,10); [X,Y] = meshgrid(x,x); z = X.*Y; s = pcolor(x,x,z); s.FaceC...

Why won't Matlab plot anything?
Sophia - 2020-08-04

When I try to plot anything, nothing comes up. There are no errors, there's just nothing.   >> x=-10:.1:10; >> y=sin(x); >> plot(x,y); No figure wind...

Get a Free Consultation or a Sample Assignment Review!