Mirror image/plot flip

85 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by