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

 채택된 답변

Luca Ferro
Luca Ferro 2023년 2월 28일
편집: Luca Ferro 2023년 2월 28일

0 개 추천

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

roberto
roberto 2023년 2월 28일
I tried table2array but lost Aarr..
tks anyway
Luca Ferro
Luca Ferro 2023년 2월 28일
What do you mean by lost?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Preprocessing에 대해 자세히 알아보기

태그

질문:

2023년 2월 28일

댓글:

2023년 2월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by