Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

monroe17

can someone help me write a program for MATLAB for cos(theta) SO FAR I HAVE: clc clear theta=0:pi:4*pi; plot(theta,cos(theta)) xlabel('theta') ylabel('cos(theta)') grid off for some reason it's display the graph not 'curve' and it's not display the x values a 0,pi,2pi,3pi,4pi... someone help please :/

  • one year ago
  • one year ago

  • This Question is Closed
  1. Libniz
    Best Response
    You've already chosen the best response.
    Medals 1

    for some reason it's display the graph not 'curve' and it's not display the x values a 0,pi,2pi,3pi,4pi... ^ what do you mean?

    • one year ago
  2. monroe17
    Best Response
    You've already chosen the best response.
    Medals 0

    give me a sec and I'll upload the problem exactly.. it has a picture..

    • one year ago
  3. monroe17
    Best Response
    You've already chosen the best response.
    Medals 0

    Write a MATLAB program that generates the following plot:(Note: you also need to label the x and y axis)

    • one year ago
  4. monroe17
    Best Response
    You've already chosen the best response.
    Medals 0

    so far.. i have : clc clear theta=0:pi:4*pi; plot(theta,cos(theta)) xlabel('theta') ylabel('cos(theta)') grid off but it still doesn't look like the plot it gives and i don't know what else to do

    • one year ago
  5. Libniz
    Best Response
    You've already chosen the best response.
    Medals 1

    I will try it on my machine

    • one year ago
  6. monroe17
    Best Response
    You've already chosen the best response.
    Medals 0

    okay, thank you!

    • one year ago
  7. Libniz
    Best Response
    You've already chosen the best response.
    Medals 1

    I see your problems , you needs more values for theta than just 4 values

    • one year ago
  8. monroe17
    Best Response
    You've already chosen the best response.
    Medals 0

    how do it do that?

    • one year ago
  9. Libniz
    Best Response
    You've already chosen the best response.
    Medals 1

    Try that

    • one year ago
  10. Libniz
    Best Response
    You've already chosen the best response.
    Medals 1

    clc clear x = 0:pi/1000:4*pi plot(x,cos(x)) xlabel('theta') ylabel('cos(theta)') grid off

    • one year ago
  11. monroe17
    Best Response
    You've already chosen the best response.
    Medals 0

    it's perfect other then the x values don't appear the same as in the picture i uploaded.. you see that?

    • one year ago
  12. Libniz
    Best Response
    You've already chosen the best response.
    Medals 1

    yeah, that's what I am looking at too

    • one year ago
  13. Libniz
    Best Response
    You've already chosen the best response.
    Medals 1

    try the following

    • one year ago
  14. Libniz
    Best Response
    You've already chosen the best response.
    Medals 1

    clc clear x = 0:pi/1000:4*pi theta=0:pi:4*pi plot(x,cos(x)) set(gca,'XTick',0:pi:4*pi) set(gca,'XTickLabel',{'0','pi','2 pi','3 pi',' 4 pi'}) xlabel('theta') ylabel('cos(theta)') grid off

    • one year ago
  15. monroe17
    Best Response
    You've already chosen the best response.
    Medals 0

    it's perfect!!! thank you! my goodness you're amazing!

    • one year ago
  16. Libniz
    Best Response
    You've already chosen the best response.
    Medals 1

    welcome

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.