lp模matlab,LP02模和LP22模的V-w曲线怎么修改

如何根据书上修改现在想仿真出这个曲线分析

LP01

clear

close all

tic

Vmax = 10;

N =100;

for j = 1:N

V(j) = j/N*Vmax;

Vtemp = V(j);

Utemp = NaN;

i = 0;

while (isnan(Utemp)  && i

init = 2.5*(i+1)/N-eps;

try

Utemp = fzero(@(Utemp) ...

besselj(0,Utemp)/(Utemp*besselj(1,Utemp)) - ...

besselk(0,sqrt(Vtemp^2-Utemp^2))/ ...

(sqrt(Vtemp^2-Utemp^2)*besselk(1,sqrt(Vtemp^2-Utemp^2))),init);

catch

end

i = i+1;

end

U(j) = Utemp;

end

W = sqrt(V.^2-U.^2);

Ymax = ceil(max([U,W]));

figure

subplot(1,2,1)

plot(V,U,'r');

axis equal

axis([0 Vmax 0 Ymax])

xlabel('V')

ylabel('U')

title('LP_{01}  V-U')

subplot(1,2,2)

plot(V,W,'r');

axis equal

axis([0 Vmax 0 Ymax])

xlabel('V')

ylabel('W')

title('LP_{01}  V-W')

toc

LP11模的

clc

clear

close all

tic

Vmax = 10;

N =100;

for j = 1:N

V(j) = j/N*Vmax;

Vtemp = V(j);

Utemp = NaN;

i = 0;

while (isnan(Utemp)  && i

init = 3.5*(N-i)/N;

try

Utemp = fzero(@(Utemp) ...

besselj(1,Utemp)/(Utemp*besselj(0,Utemp)) + ...

besselk(1,sqrt(Vtemp^2-Utemp^2))/(sqrt(Vtemp^2-Utemp^2)* ...

besselk(0,sqrt(Vtemp^2-Utemp^2))),init);

catch

end

i = i+1;

end

U(j) = Utemp;

end

W = sqrt(V.^2-U.^2);

Ymax = ceil(max([U,W]));

figure

subplot(1,2,1)

plot(V,U);

axis equal

axis([0 Vmax 0 Ymax])

xlabel('V')

ylabel('U')

title('LP_{1m} V-U')

subplot(1,2,2)

plot(V,W);

axis equal

axis([0 Vmax 0 Ymax])

xlabel('V')

ylabel('W')

title('LP_{1m} V-W')

toc

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值