How to convert string data to double data in Matlab Function Block ?

조회 수: 2 (최근 30일)
BATIKAN DEMIR
BATIKAN DEMIR 2016년 4월 4일
답변: Akshat Dalal 2025년 3월 2일
Hi, I'm trying to convert a char variable to double in Matlab Function Block, but it was failed. I tried everything such as coder.extrinsic, eml extrinsic ('str2double' or 'sscanf'), I wrote my c soruce code and I used it with coder.ceval. But I was not succeed. Please help me about this subject.

답변 (1개)

Akshat Dalal
Akshat Dalal 2025년 3월 2일
Hi,
You can refer the following MATLAB Answer which also discusses the same topic: https://www.mathworks.com/matlabcentral/answers/305159-how-to-convert-char-into-double

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by