MATLAB QUESTIONS & EXPERT ANSWERS

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

Illustration
How can I plot a symbolic function or determine a finite and real starting guess for fzero?
shalnivardhan - 2020-09-03

I have a very long and somewhat complicated complex function that I need to find the roots of. It is a function of "s", which is imaginary, and which ...

How to plot a surface 3d plot using this function?
skdixit - 2020-09-03

TIME=1:1:100; Z = 1: 1: 100; [X,Y]=meshgrid(TIME,Z); P = 12242-28.649. * Cos (6.28. * TIME + 1.33. * Z) -1702.3. * Sin (6.28. * TIME + 1.33. * Z) -495...

Why is the autocolor green of plot not the same as plotting 'g'?
tanisha97 - 2020-09-02

Why don't plot(x1,y1,x2,y2) and plot(x1,y1,'b',x2,y2,'g') have the same color green line? Can you make them the same color? All the other colors that ...

How can I keep my GUI invisible while plotting?
techsmith - 2020-09-02

In my GUI, I run 2 plots on separate axes in OpeningFcn. When The GUI becomes visible, one has been plotted (the first one in the code) but the other ...

How to change the color code in contourf
tanvishah - 2020-09-02

I got an old script and i am modifying it. Below is my script for i=1:2   h= figure;contourf(X',Y',damp_matrix(:,:,i),1000,'EdgeColor','none'); color...

how to set x axis into hours
ishitaisha6840 - 2020-09-02

i have problem . how to i set the x axis into hour. i have 10080 data and each one represents one minute of data. i want to represents x axis with 24 ...

How to create random vectors of the same lengths?
kellysmith9 - 2020-09-02

I am trying to get a random vector (2D) of the same length, say 'x'. I thought about creating a list of numbers -1 to 1 for x values and then another ...

How to change ylabels in a for loop
Gracesmith97 - 2020-09-01

Hello everyone, I have a simple for loop to plot 7 different plots, but the ylabel should be different.   for k=1:7; figure bar(GAMMA_sta(k,:)) xlabe...

How do you set the dimensions of an excel plot using activex from MATLAB?
ava.smith01 - 2020-09-01

I have constructed a xyscatter plot in excel using activex from matlab code but cant figure out how to dimension it. Here is the code that I have: Wor...

Why with even numbers the sin looks completly different that with odd number
Aayushsingh - 2020-09-01

Hello!! I am plotting an easy sin function but I dont understand why when the variable delta is 0.2 0.4 0.6 and so on I get a perfect sin, but on the ...

Get a Free Consultation or a Sample Assignment Review!