Mean between an interval
Ältere Kommentare anzeigen
I want to calculate the mean between a time interval that depends on a variable like P ;
F=[1 10 2 4 6 8];
for q=1:length(F);
P=F(q);
Average=mean(M3(90000-P*0.2*1732:90000));
'' Integer operands are required for colon operator when used as index'' warning is come.. What is the problem here ?
1 Kommentar
FG
am 8 Okt. 2020
Akzeptierte Antwort
Weitere Antworten (1)
madhan ravi
am 8 Okt. 2020
x = 1:5;
x(.2) % error
x(2) % no error , index can only be integers not decimals
I suggest you to do MATLAB Onramp course.
1 Kommentar
FG
am 8 Okt. 2020
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!