How to plot solutions for different values of parameters on same file?
1 回表示 (過去 30 日間)
古いコメントを表示
How to plot solutions for different values of parameters on same file i..e,
close all;
X=-5:.1:5;
T=-5:.1:5;
%i=1;
w0=.5;
%h=3;
eta=(1./2);
sig=-1;
e0=2*w0*sqrt(eta-sig);
mu1=.5*1i;
[x,t]=meshgrid(X,T);
%a=4*mu1.^2-(w0.^2./2);
A=(1./(-2*w0.^2+2*mu1.^2)*sqrt(e0.^2-4*mu1.^2).*((-2*w0.^2+2*mu1.^2)*x+t));
a=e0*sinh(A)-2*1i*mu1;
b=e0+2*1i*mu1*sinh(A);
r1=e0-4*1i*mu1*(a./b);
surf(x,t,abs(r1));
shading flat;
grid off;
How to plot 'r1' for different values of 'mu1' on same figure like this

0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!