How to do multiple divisions in order to generate another array?
Ältere Kommentare anzeigen
I have this 60001x1 array called "assust", I need it to be compressed in order to obtain certain values, a few months ago I just repeat the line 15 times but now I have to make it work better and automatically
The code is:
A(1) = sqrt(sumsqr(asust1(2:4001,1))/4000);
A(2) = sqrt(sumsqr(asust1(4001:8000,1))/4000);
A(3) = sqrt(sumsqr(asust1(8001:12000,1))/4000);
A(4) = sqrt(sumsqr(asust1(12001:16000,1))/4000);
A(5) = sqrt(sumsqr(asust1(16001:20000,1))/4000);
A(6) = sqrt(sumsqr(asust1(20001:24000,1))/4000);
A(7) = sqrt(sumsqr(asust1(24001:28000,1))/4000);
A(8) = sqrt(sumsqr(asust1(28001:32000,1))/4000);
A(9) = sqrt(sumsqr(asust1(32001:36000,1))/4000);
A(10) = sqrt(sumsqr(asust1(36001:40000,1))/4000);
A(11) = sqrt(sumsqr(asust1(40001:44000,1))/4000);
A(12) = sqrt(sumsqr(asust1(44001:48000,1))/4000);
A(13) = sqrt(sumsqr(asust1(48001:52000,1))/4000);
A(14) = sqrt(sumsqr(asust1(52001:56000,1))/4000);
A(15) = sqrt(sumsqr(asust1(56001:60001,1))/4000);
Is there any way that I'm able to do this automatically??
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!