I am unable to plot this mat lab program
Mostrar comentarios más antiguos
My Program included the triple integral:
clearvars; close all; clc;
Bi=[0.001 0.1:0.1:0.9 0.999];N0=0.01;n=0.7;Rth=1;
Omg_sr=1;Omg_rd=1;p1=5;p=10^(0.1*p1);N=3;
sop_th=zeros(1,length(Bi));
for a=1:length(Bi)
b=Bi(a);
k1=(1-b)*p;k2=N0/(k1*Omg_sr);k3=n*b*(1-b)*p;k4=n*b*N0;k5=(1-b)*N0;
fun=@(z,y,x) ((((k4*x+k5)./(k3*x)).*(exp(-(((y./z).*((k4*x+k5)./(k3*x)))+x/Omg_sr)))).*(N*((1-exp(-((z*k2)./(z+1)))).^(N-1)).*(exp(-k2*z)).*((k2./(z+1))+(1./(z+1).^2))));
zmin=0;zmax=Inf;
ymin=0;ymax=@(z)(2^Rth*(1+z)-1);
xmin=0;xmax=100;
sop_th(a)=(integral3(fun, zmin,zmax,ymin,ymax,xmin,xmax))^N;
end
semilogy(Bi,sop_th,'r>-');
grid on;hold on;
If any mistake in my program please help me.
6 comentarios
Shashibhushan Sharma
el 13 de Dic. de 2017
Michal Dobai
el 13 de Dic. de 2017
Format your code first, please.
Shashibhushan Sharma
el 13 de Dic. de 2017
Editada: Walter Roberson
el 14 de Dic. de 2017
Shashibhushan Sharma
el 13 de Dic. de 2017
Shashibhushan Sharma
el 13 de Dic. de 2017
Shashibhushan Sharma
el 14 de Dic. de 2017
Respuestas (0)
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!