i get the message - The value of the "OutputData" property must be a double matrix or a cell array of such matrices. How can i fix this issue?

Respuestas (1)

Hi Alan,
You can use curly brace {} indexing to extract the raw data. This pulls the numerical values directly into a matrix. Here is an example snippet explaining the same
% Let's assume your data is in a table 'T'.
% Columns 2 and 3 are inputs, and columns 4 and 5 are outputs.
Ts = 0.01; % Your sampling time
% Directly create the iddata object using curly brace indexing
dataSet = iddata( T{:, 4:5}, T{:, 2:3}, Ts );
For more information on indexing in MATLAB check
You can refer to the following

Categorías

Más información sobre System Identification Toolbox en Centro de ayuda y File Exchange.

Productos

Versión

R2023a

Etiquetas

Preguntada:

el 7 de Sept. de 2025

Respondida:

el 10 de Sept. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by