Why cant' I plot this graph?
이전 댓글 표시
x = linspace(0,2,250);
y = 15*x^3-9*x^2-36*x+36;
plot(y,x)
답변 (1개)
David Hill
2020년 11월 23일
You need .^ for elementwise array operations
x = linspace(0,2,250);
y = 15*x.^3-9*x.^2-36*x+36;
plot(y,x)
카테고리
도움말 센터 및 File Exchange에서 Polynomials에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!