New Reply

Matlab - Graph and xlabel error

 
Share Thread Thread Tools
Nov13-12, 02:02 PM   #1
 

Matlab - Graph and xlabel error


Hello,

I'm new to matlab and I'm still learning the basics.

I was able to plot the graph. However, when I assign the xlabel the graph disappears.

i.e. I write:

x=[1 2 3 4];
y=x.^2;
plot(x,y)

The graph appears. And then when I write:
xlabel('x-axis')

The graph disappears and I only see the x-axis.

Am I missing something?

Thanks a lot
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Ants and carnivorous plants conspire for mutualistic feeding
>> Forecast for Titan: Wild weather could be ahead
>> Researchers stitch defects into the world's thinnest semiconductor
New Reply

Tags
matlab, plot, xlabel
Thread Tools


Similar Threads for: Matlab - Graph and xlabel error
Thread Forum Replies
Matlab Error Math & Science Software 1
Calculating error in gradient of a graph Introductory Physics Homework 1
Error in MATLAB 10a Math & Science Software 2
Scientic error expected in displacement vs time graph and velocity vs time graph Introductory Physics Homework 2
error in matlab Calculus & Beyond Homework 10