anonymous
  • anonymous
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 :/
Engineering
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
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?
anonymous
  • anonymous
give me a sec and I'll upload the problem exactly.. it has a picture..
anonymous
  • anonymous
Write a MATLAB program that generates the following plot:(Note: you also need to label the x and y axis)

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
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
anonymous
  • anonymous
I will try it on my machine
anonymous
  • anonymous
okay, thank you!
anonymous
  • anonymous
I see your problems , you needs more values for theta than just 4 values
anonymous
  • anonymous
how do it do that?
anonymous
  • anonymous
Try that
anonymous
  • anonymous
clc clear x = 0:pi/1000:4*pi plot(x,cos(x)) xlabel('theta') ylabel('cos(theta)') grid off
anonymous
  • anonymous
it's perfect other then the x values don't appear the same as in the picture i uploaded.. you see that?
anonymous
  • anonymous
yeah, that's what I am looking at too
anonymous
  • anonymous
try the following
anonymous
  • anonymous
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
anonymous
  • anonymous
it's perfect!!! thank you! my goodness you're amazing!
anonymous
  • anonymous
welcome

Looking for something else?

Not the answer you are looking for? Search for more explanations.