MATLAB中简单程序但是图像不正确的问题clear;clc;R0=55;R1=100;R2=25;Pa=0.1;Pd=0.6;Pv=0.1;for r=0:0.1:100if (R2>r>=0)P=0.1;plot(r,P)hold onelseif(R0>=r>=R2)P=sqrt(Pd^2-(Pd^2-Pv^2)*log(r/R0)/log(R2/R0));plot(r,P)hold onelseP=sqrt(Pd^2-(Pd^2
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/27 07:01:14
![MATLAB中简单程序但是图像不正确的问题clear;clc;R0=55;R1=100;R2=25;Pa=0.1;Pd=0.6;Pv=0.1;for r=0:0.1:100if (R2>r>=0)P=0.1;plot(r,P)hold onelseif(R0>=r>=R2)P=sqrt(Pd^2-(Pd^2-Pv^2)*log(r/R0)/log(R2/R0));plot(r,P)hold onelseP=sqrt(Pd^2-(Pd^2](/uploads/image/z/6119304-24-4.jpg?t=MATLAB%E4%B8%AD%E7%AE%80%E5%8D%95%E7%A8%8B%E5%BA%8F%E4%BD%86%E6%98%AF%E5%9B%BE%E5%83%8F%E4%B8%8D%E6%AD%A3%E7%A1%AE%E7%9A%84%E9%97%AE%E9%A2%98clear%3Bclc%3BR0%3D55%3BR1%3D100%3BR2%3D25%3BPa%3D0.1%3BPd%3D0.6%3BPv%3D0.1%3Bfor+r%3D0%3A0.1%3A100if+%28R2%3Er%3E%3D0%29P%3D0.1%3Bplot%28r%2CP%29hold+onelseif%28R0%3E%3Dr%3E%3DR2%29P%3Dsqrt%28Pd%5E2-%28Pd%5E2-Pv%5E2%29%2Alog%28r%2FR0%29%2Flog%28R2%2FR0%29%29%3Bplot%28r%2CP%29hold+onelseP%3Dsqrt%28Pd%5E2-%28Pd%5E2)