フィルターのクリア

plot3를 이용하여 [2*cos(t),2*sin(t),5] 공간곡선 그리기

7 ビュー (過去 30 日間)
seongjin park
seongjin park 2020 年 6 月 1 日
回答済み: Monisha Nalluru 2020 年 7 月 8 日
>> t = 0:pi/10:pi;
>> plot3(2*cos(t),2*sin(t),5)
다음 사용 중 오류가 발생함: plot3
벡터들의 길이는 같아야 합니다.
이렇게 뜨는데 어떻게 변경해야 할까요??

回答 (1 件)

Monisha Nalluru
Monisha Nalluru 2020 年 7 月 8 日
From my understanding,
The plot3 function takes x,y,z as input arguments all are of same size or dimension.
In the problem stated above the dimension of
2*cos(t) is 1×11 double
2*sin(t) is 1×11 double
So, the third argument passing to the function should be of 1×11 double size.
You can use something like below
t=0:pi/10:pi
plot3(2*cos(t),2*sin(t),t) % t is 1×11 double size

カテゴリ

Help Center および File Exchange펄스 메트릭과 천이 메트릭 についてさらに検索

Community Treasure Hunt

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

Start Hunting!