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

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 日

0 投票

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)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

質問済み:

2016 年 12 月 23 日

回答済み:

2016 年 12 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by