Need Help with matrix indexing
Mostra commenti meno recenti
Hello!
I'm new to programming and the matlab.I have a matrix of 50000 rows and 10 columns.What i need to do is, getting rms values of every 200 rows of that matrix for each columns and then put the rms values in a new one.
I've tried this but that gives the "Index exceeds matrix dimensions."
Thanks @KALYAN ACHARJYA.
What if I try to do length(data)/200*10 matrix instead 1*10? Like every 200 rms for each row.
c=mod(length(data),200);
data=data(1:end-c,:);
for i=1:200:length(data)
dataR=rms(data(1:i,:));
end
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!