How to convert system.string to uint8?

5 ビュー (過去 30 日間)
Antti Wredfors
Antti Wredfors 2017 年 12 月 23 日
I'm using .NET to read FTDI usb uart serial data.
The following method:
str = System.String('create a System.String');
[r str] = Read( fo, BytesToRead, BytesReceived);
arr = (uint8(char(str)))
results to 'arr' maximum value is 127.
How to pass system.string values between 127..255 (uint8)? Or is there better conversion method for system.string variables to uint8?

回答 (0 件)

カテゴリ

Help Center および File Exchange.NET Generic Classes in MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by