matlab plot for non separable function

4 ビュー (過去 30 日間)
Satyajit Kumar
Satyajit Kumar 2022 年 7 月 11 日
回答済み: Pratyush Swain 2022 年 7 月 11 日
is it necessary to separate y=f(x) , to use plot of function ?
cant i write f(x,y)=0 and plot ; in case y and x are non separable ,
then is there way to plot?
  4 件のコメント
KSSV
KSSV 2022 年 7 月 11 日
What exactly you are expecting?
Satyajit Kumar
Satyajit Kumar 2022 年 7 月 11 日
@KSSV i am expecting as done by @Dyuman Joshi

サインインしてコメントする。

採用された回答

Dyuman Joshi
Dyuman Joshi 2022 年 7 月 11 日
syms x y
fimplicit(sin(x*y)+y+2==0)

その他の回答 (1 件)

Pratyush Swain
Pratyush Swain 2022 年 7 月 11 日
I believe you want to plot custom function over a range without having to pass the x and y points.I guess plot_expression_or_funtion might be able to help your cause.
%Using the fplot func to plot y=x^2+2x+5 over the range [1,50]
fplot(@(x) (x*x)+3*x+5,[1 50])
Warning: Function behaves unexpectedly on array inputs. To improve performance, properly vectorize your function to return an output with the same size and shape as the input arguments.
Hope this helps.

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by