I wrote a program.( It indicating this error:Struct contents reference from a non-struct array object.)please help me,where the error is?
Afficher commentaires plus anciens
clear all;
close all;
Nt=2;
Nr=2;
alpha=1;
Pb=10^-3;
b=2;
B=10000;
No=(7.94*10^-21);
GtGr=3.162;
dij=100;
lambda=0.12^2;
Ml=10;
Nf=0.01;
ptc=47.8*10^-3;
prc=69.8*10^-3;
psyn=50*10^-3;
Ebt=[];
for i=1:length(Nt);
for j=1:length(Nr);
Ebt=((1+alpha)*(Pb/4^(-1/Nt*Nr))*(2^b-1)/b^((1/Nt*Nr)+1)*(7.94*10^-21)*(((4*pi*dij)^2)/GtGr*lambda)*(Ml*Nf)+((Nt*ptc+2*psyn+Nr*prc)/B.b));
end
end
disp(Ebt);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!