Why does this plot not work? Thank's for every help!

조회 수: 1 (최근 30일)
Fabian Rüeger
Fabian Rüeger 2016년 12월 23일
답변: Roger Stafford 2016년 12월 24일
x = linspace(0.5,8.7,870)
syms y;
solve(4000 == (y/6.5)*(8.7-x),y)
plot(x,y)

답변 (1개)

Roger Stafford
Roger Stafford 2016년 12월 24일
It would be better to first solve the equation for y symbolically and then produce a vector of y values:
x = linspace(0.5,8.7,870);
y = 6.5*4000./((8.7-x); % <-- The symbolic solution
plot(x,y)

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by