how to flip mirror contour plot horizontally (to flip about 180 degrees)
3 次查看(过去 30 天)
显示 更早的评论
Hello everyone, please i have this code which i used the attached files to generated the mirror contour plot as in the figure. Please how can i flip the two contours horizontally? in other words both contours to flip to 180 degrees horizontal.

figure
[C,h] = contour(R,Z,psi,9,'linewidth',1.9)
hold on
[C,h] = contour(-R,Z,psi,9,'linewidth',1.9)
采纳的回答
Ameer Hamza
2020-12-2
Are you looking for something like this
psi = readmatrix('psi_all.txt');
Z = readmatrix('Z_all.txt');
R = readmatrix('R_all.txt');
figure
[C,h] = contour(R,Z,flipud(psi),9,'linewidth',1.9)
hold on
[C,h] = contour(-R,Z,flipud(psi),9,'linewidth',1.9)

更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!