フィルターのクリア

Mirror image/plot flip

85 ビュー (過去 30 日間)
Grace
Grace 2022 年 9 月 4 日
コメント済み: Grace 2022 年 9 月 4 日
I want to plot the mirror image of a cubic curve.
In other words, I intend to flip the plot, but I do not want the x- axis to change.
This is my code and the plot. Thank you
clear all;close all;clc;
x=linspace(0, 100);
y=x.^3;
plot(x,y,'LineWidth', 2);set(gca,'xdir','reverse')

採用された回答

Walter Roberson
Walter Roberson 2022 年 9 月 4 日
clear all;close all;clc;
x=linspace(0, 100);
y=x.^3;
plot(x,fliplr(y),'LineWidth', 2);set(gca,'xdir','reverse')
  5 件のコメント
Walter Roberson
Walter Roberson 2022 年 9 月 4 日
... but that is the one you started with ??
Grace
Grace 2022 年 9 月 4 日
I meant the seond plot (without counting the 'original plot')

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by