fplot change plot axes (y versus x)

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일

2 개 추천

[X,Y]=fplot(fun,[0.05 50])
plot(Y,X)
Pravin Jagtap
Pravin Jagtap 2020년 4월 28일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

제품

태그

질문:

2020년 4월 25일

답변:

2020년 11월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by