error in movstd function
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
roberto
am 28 Feb. 2023
Kommentiert: Luca Ferro
am 28 Feb. 2023
hello
I have a file "A" 1000x1 table this way:
1.0631
1.0631
1.0633
........
when I launch M=movstd(A,5) the answer is
"Error using movstd
Invalid data type. First input must be numeric or logical."
where do I go wrong?
tks
0 Kommentare
Akzeptierte Antwort
Luca Ferro
am 28 Feb. 2023
Bearbeitet: Luca Ferro
am 28 Feb. 2023
as the error says you are using a table as input when it is not a supported. According to the documentation (end error) the supported input types are:
Input array, specified as a vector, matrix, or multidimensional array.
Without seeing you code all i can suggest is to convet the table to an array and then call movstd:
Aarr=table2array(A);
M=movstd(Aarr,5)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Other Formats finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!