cant read complex numbers with 'From Workspace' in simulink

조회 수: 1 (최근 30일)
apchar
apchar 2013년 4월 29일
댓글: Abdelwahab Afifi 2019년 10월 8일
I have a simple simulink model (simtest) that gets it's data from the 'From Workspace' block. I'm running it with sim('simtest'). It works fine for real numbers but when I try to read a complex number it says: Unsupported input format for From Workspace block 'simtest/From Workspace'. Available formats include: (1) a double non-complex matrix, (2) a structure with or without time, (3) a Simulink.Timeseries object. All formats require the data to be finite (not Inf or NaN).
I need complex numbers. I'd hate to split it into 2 vectors. Blech. How do I read complex numbers with From Workspace ?

답변 (1개)

apchar
apchar 2013년 4월 29일
Got it. It's a stupid solution but apparently you have to bundle complex numbers into a structure to pass them through 'From Workspace'. One for the archives.
  댓글 수: 1
Roozbeh
Roozbeh 2013년 8월 7일
I have the same problem. Can you tell me how you made it in structure form and the way you recall it in simulink.

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

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by