how to plot this function with figure

In the same figure, plot:1) sin(x), x+1, x3-3, in the rank -2 to 3.14
2)Plot x=8×cos⁡(t),y=4√(sin⁡(t)),z=-4√(sin⁡(t)) t= [0,2π]
3)z=(sin√(x^2+y^2 ))/√(x^2+y^2 )

댓글 수: 4

Adam Danz
Adam Danz 2020년 6월 9일
If you have a specific question about a small part of your assignment many volunteers would he happy to help. But you've got to do your own assignment.
marwan alamah
marwan alamah 2020년 6월 9일
편집: Adam Danz 2020년 6월 9일
this is a littel different from what teacher had taught us and i want to understand it and know how to calculate all in right way
x=(-2:3.18);
y=sin(x);
plot(x,y)
hold on
z=x+1;
plot(x,y,x,z)
hold on
m=x.^3-3;
plot(x,y,x,z,x,m)
is this answer right for part one
You likely want to break x into a larger array.
x=-2:.01:3.18;
You can plot all at once with one plot command
plot(x,y,x,z,x,m);
Adam Danz
Adam Danz 2020년 6월 9일
In addition to David's advice, you'll also need to apply the math in your question, of course. Those functions should be pretty easy to identify.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

질문:

2020년 6월 9일

댓글:

2020년 6월 9일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by