Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how to plot the graph

Subject: how to plot the graph

From: VeraSB

Date: 6 Dec, 2009 10:30:08

Message: 1 of 2

Hi, I have problem to plot a graph from the function of x as below.
The x values are from 0.05 to 0.47 with increasing is 0.02.

x=0.05:0.02:0.47;
y=1+(exp(-sqrt(15*x)-1)/(sqrt(15*x)));
plot(x,y)

I have tried to run the program . There is no error but the there is
no plotting in the figure. How to plot the graph? Thanks a lot.

Subject: how to plot the graph

From: Sadik

Date: 6 Dec, 2009 10:54:01

Message: 2 of 2

You should use ./ instead of /:

y=1+(exp(-sqrt(15*x)-1)./(sqrt(15*x)));

Best.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us