필터 지우기
필터 지우기

Double Checking VVF graph

조회 수: 2 (최근 30일)
Cassandra Meyer
Cassandra Meyer 2022년 2월 20일
댓글: Star Strider 2022년 2월 20일
I have a curve with the parametrizations below and its coming up at two different lines when I graph it. I was going to try to make it a 3D plot with z=0 and it wouldn't let me. Does this look right? I feel like it should not be two separate lines, but I might be overthinking it.
syms t
x = (sqrt(3)*t- sin(t))/2
y = (t + sqrt(3)*sin(t))/2
r = [x y]
fplot(r)

채택된 답변

Star Strider
Star Strider 2022년 2월 20일
‘... it wouldn't let me.
Of course it will!
You just have to ask it nicely (and ask the correct plotting function)!
syms t
x(t) = (sqrt(3)*t- sin(t))/2
x(t) = 
y(t) = (t + sqrt(3)*sin(t))/2
y(t) = 
z(t) = 0*t
z(t) = 
0
figure
fplot3(x, y, z, [-1 1]*25, 'LineWidth',2)
Make appropriate changes to get the desired result.
.
  댓글 수: 2
Cassandra Meyer
Cassandra Meyer 2022년 2월 20일
OH that makes so much sense thanks so much!!
Star Strider
Star Strider 2022년 2월 20일
As always, my pleasure!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by