fplot change plot axes (y versus x)

10 ビュー (過去 30 日間)
Giorgia Fattorini
Giorgia Fattorini 2020 年 4 月 25 日
回答済み: Sebastian Killing 2020 年 11 月 21 日
I would like fplot to change the x axis to the y axis. I wish my function was plotted y vs x
  1 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 4 月 25 日
Can you show the code you are using with fplot()?

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

回答 (2 件)

Sebastian Killing
Sebastian Killing 2020 年 11 月 21 日
[X,Y]=fplot(fun,[0.05 50])
plot(Y,X)

Pravin Jagtap
Pravin Jagtap 2020 年 4 月 28 日
Hello Giorgia,
'fplot' is mostly used to plot a curve defined by y=f(x) where 'x' is input and 'y' is output which is the standard convention. I would recommend you use a simple 'plot' function since you will get control over how you want to represent the data in the plot.
Refer to the following documentation for more details:
Hope this will help you.

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by