Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

matlab simulink supported data types

1 visualización (últimos 30 días)
Ahmed Tawfeeq
Ahmed Tawfeeq el 11 de Feb. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi all...how can I test datatype of a matlab function? ...for example ,I want to know the datatype of the function adaptfilt.lms because I have an error about specifying the datatype of the called function to matlab function block.

Respuestas (1)

Walter Roberson
Walter Roberson el 11 de Feb. de 2012
class() will show you the data type for its argument.
adaptfilt.lms returns a "FIR LMS object" according to the documentation. The datatype involved will not be one of the fundamental arithmetic data types such as "double", and it will not be a cell array or a struct: it will be an Object Oriented Programming (OOP) object.
I do not know if you are permitted to pass such objects to a MATLAB Function Block (that is, this is outside my experience.)
  1 comentario
Kaustubha Govind
Kaustubha Govind el 13 de Feb. de 2012
+1
You can only use the adaptfilt.lms function in your MATLAB Function block, but not use it as input/output.

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by