This is my program... i have this error ??? Subscript indices must either be real positive integers or logicals. how can i fix it?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
x=wavread('E:\project\kani imp\akk'); l=size(x)
l =
78336 2
>> s=1; >> for t=[4000:4000:l] sum=0; for t1=[s:t] sum=sum+(sum(abs(x.^2))); en=sum; enm=en+1; end end
Answers (1)
Azzi Abdelmalek
on 2 Nov 2012
Edited: Azzi Abdelmalek
on 2 Nov 2012
Your are using sum as a variable and as a function
maybe this is what you want
x=rand(78336,2); % your data
l=size(x,1);
s=1
for t=[4000:4000:l];
som=0;
for t1=[s:t]
som=som+(sum(abs(x.^2)));
en=som;
enm=en+1;
end
end
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!