×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Help with Plot function

Help with Plot function

Help with Plot function

(OP)
Hello all,

I have a small but extremely frustrating problem. When I try to use the Plot function in Matlab, I get an error. This never happened before to me. For example, if I write the following code:

x=[-5:1:5]

y =x;

plot(x,y)

And then save and run it, I get an error that states:

??? Attempt to execute SCRIPT plot as a function

Error in ==> plot2 at 5
plot(x,y)

Can anyone tell me what this means?? Or how I can overcome this little  problem? Thank you very much all.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources