MATLAB QUESTIONS & EXPERT ANSWERS

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

Illustration
how to make grid lines closer in x axis and y axis
sophiawilson96 - 2020-08-27

I have written this code   h1336 = []; L=50; fs=8000; fb=1336; h1336 = (2/L)*cos(2*pi*fb*(0:L-1)/fs); [H,F] = freqz(h1336,1,[],fs); subplot(2,1,1) pl...

How to plot a vector using a variable that contains the name of the vector.
ava.smith01 - 2020-08-27

I have a vector called collection with some elements: collection = [1 2 3 4 5 6 7 8 9 0]; I also have a variable called x that stores the string 'coll...

How to plot a function, typed in a textfield (GUI), as a function handle?
johncarter - 2020-08-27

Why does the following don't work or what needs to be added?   % --- Executes on button press in pbCalculate. function pbCalculate_Callback(hObject, ...

How to change the color of a graph only in a particular section?
Mariahernandez - 2020-08-27

I was just wondering if there is a way to change a particular part of a plot to another color? Suppose we have a plotted signal in BLUE and we wannan ...

How do I get the figure position from a plot?
ishitaisha6840 - 2020-08-27

I create a 3D contour plot like this:   [C,h]=contour3(w,p,green1,30); t=clabel(C,h); get(t(1)); This created a 3D plot and this output: Annotation =...

Can I change the axis scaling after plotting is done?
Anderson85 - 2020-08-26

I have a function that plots a graph with time on the x-axis, sometimes I want to change the scaling from s to ms or whatever. Can I somehow do that w...

How to get data from figures produced by errorbars?
Amelia_james1 - 2020-08-26

I have a figure which was produced by using errorbars command. It plots the mean data and corresponding error bars. Now I would like to obtain all dat...

How to adapt the number format for text in a graph
Robert - 2020-08-26

I've added some text to a graph which consists of text and a value. In this case: "99% Lower Confidence Limit =" and then the value. Right now, the va...

How to plot a single coordinate, not the vector between them?
ruby - 2020-08-26

Hi! I am using the polar function to plot two coordinates on the polar coordinate system, however, I am getting a line between them, I just want two s...

How to draw a plot by coefficents?
nandnisingh - 2020-08-26

I have 5 coefficents: for example: a = [2 3 4 5 6] And I want to draw a plot a1 + a2*t + a3*t^2 + a4*sin(t) + a5*cos(t) how to do this?...

Get a Free Consultation or a Sample Assignment Review!