what does it means Check for incorrect argument data type or missing argument in call to function 'realdata'.?

조회 수: 16 (최근 30일)
clc
clear all
close all
format long g
load('DatenAufgabeFilter.mat')
ts = timeseries(Messdaten)
tsc = tscollection(Messdaten)
% TT = ts2timetable(Messdaten)
zf = fft(Messdaten);
tdrv = isreal(Messdaten)
ral_Data = realdata(Messdaten)

답변 (1개)

Seungbum Koo
Seungbum Koo 2021년 6월 25일
It means that the data type of Messdaten is not what function realdata expects.
If you do the following, you'll see the same error.
>> realdata('some nonsense data type')
Check for incorrect argument data type or missing argument in call to function 'realdata'.
Since realdata tries to see if the input argument is real type or not, I guess the function is implemented on some assumption about the input argument. And 'some nonsense data type' is a character vector which is definitely not one of the kind.
Please refer to Determine whether iddata is based on real-valued signals - MATLAB realdata (mathworks.com) for the details. In the document, one of the examples passes in zf to realdata. I would first try to make Messdaten to look like zf of the document's example.

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by