필터 지우기
필터 지우기

combine different data types as a single output and send to workspace

조회 수: 2 (최근 30일)
Eleni T
Eleni T 2023년 1월 12일
댓글: Dongyue 2023년 1월 18일
Hello!
I use a bus creator to combine different data types (e.g double, string) in a single output. However, when i try to send this to workspace using the 'to workspace' block, it does not accept different data types. Do you have any other suggestions?
Thanks
  댓글 수: 1
Dongyue
Dongyue 2023년 1월 18일
My suggestion is using two ToWorkspace blocks instead of one. ToWorkspace will store data in array, and array can only store data with the same datatype. In MATLAB, items with different datatypes should be stored in cell, but this is not allowed for ToWorkspace block.

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

답변 (0개)

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by