필터 지우기
필터 지우기

How to convert a dynamic string to a fixed length string in Simulink?

조회 수: 5 (최근 30일)
Clément Bourgeois
Clément Bourgeois 2018년 11월 14일
편집: Clément Bourgeois 2018년 11월 14일
Hi,
The ASCII To String block cannot return a fixed length string using stringtype(X) most likely because it is constrained by the length of the input array. However I would like to be able to convert that string signal to a fixed length string because I have a model with an input port datatype set to stringtype(50) and that cannot be changed. Using the Convert block does not work, nor does
set_param('mdl/ASCII to String', 'OutDataTypeStr', 'stringtype(50)')
Is there anyway to convert string to stringtype(50) ?
Thanks in advance,

답변 (0개)

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by