How to reflect a graph
古いコメントを表示
I am trying to reflect the graph closest to the origin. The reflection should start where the graph ends. I have not achieved this. Please see figure1. Any ideas? much appreciated
for n = 1:5;
v = v(n);
i;
d=z1/cosd(i); %calculate diagonal distance
h(n)=z1*sind(i); %calculate horizontal distance
t(n) = d/v;
v = [3:7];
depth(n)=z1
sini = ((sind(i)*(v+1))/v);
i= asind(sini)
z1=z1+2;
end
N=cumsum(h);
plot(h,depth)
hold on
grid on
B=cumsum(h)+N(:,end)
C=flip(depth)
plot(B,C)
axis ij

3 件のコメント
Image Analyst
2015 年 3 月 11 日
I don't know what reflect means to you. Like a mirror image about some line? If so, which line, or axis? Please attach a picture of what you'd like to get out.
JDilla
2015 年 3 月 11 日
JDilla
2015 年 3 月 11 日
採用された回答
その他の回答 (1 件)
Deeptanu Datta
2019 年 12 月 18 日
0 投票
How to take mirror image of a plot about the straight line y=-x ?
カテゴリ
ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
