How to correct ??? Error using ==> times Matrix dimensions must agree? plz help me?
Show older comments
I am using a formula its showing error inthe line Error in ==> pp at 134
A =(((beta').*(beta))+((0.9997).*(eye(2)))); %noise variance is assumed = 1
for k = 1:40
lem=zeros(0,3779);
for n = 0:3779
lem(k,n+1)= 1-(exp(-2j*pi*(n/3780))+exp(2j*pi*(n/3780))); %lemda_i
end
end
thetha=zeros(1,3779);
for n = 0:3779
thetha(n+1,1) = 1;
thetha(n+1,2) = n; %thetha_n
end
beta = lem*thetha; %beta_i
y_p = cen_plts;
A =(((beta').*(beta))+((0.9997).*(eye(2)))); %noise variance is assumed = 1
B = inv(A);
C = (beta') * (y_p.');
rho_cap = B/C;
h_inl = thetha * rho_cap;
g_i = sum(h_inl)/3780;
G_i = g_i * eye(3780);
x_ik=zeros(1,3780);
plot(x_ik);
figure;
Answers (1)
Azzi Abdelmalek
on 20 Apr 2013
You can not use
beta'.*beta
It should be
beta.*beta
%Or
beta'*beta
Categories
Find more on Descriptive Statistics and Insights in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!