Info

此问题已关闭。 请重新打开它进行编辑或回答。

How can I divide the following RAW data 'ans' seperately with new name and how can Divide each set because it is mixture of Ascii and HEX. Could you please help me regarding this. The answer is appriciable.

1 次查看(过去 30 天)
ans =
'!U5æ01131B8B04CB18CE1DB0
'
ans =
'!E0000
'
ans =
'!R010000000000cskYB<YFSFMB>>685,0*,)'*,,(+*)(()))(*((()**())**(()((()'((*((-..**,,?MKct?}rqGTL<kz???otj?ly{ql^UZBPRCBKI@9-5<9,96)//+-0+(0/*)()*/*+*),,,4--SXI]R53<8B?:,6BPSN,79?-ODNIAIOM\S_K.MOKK5DDBNUIF.667A:.<469/502*44/*1.//E?4/2+*((,25:C>)*.**.(**(-3.+-/-,)*)+,
'
ans =
'!C010000000000g`gprpnid_]ZXWURMKIGFFDCA?><;::999888888888888888888888999:;=@CFJNQUVWWWWYZ\_cgmrtz{}}|{{zyyyxxvrsqpolihfcbb_\XTRPMKIGFECBB@?>===<<<<<=?@BDEEFEFGFEDCEHKLNNNNPRSRONNORTVUTTTVVVUSRSTWXYWVVVVUSQONMMNNKJIIHGFECCCDDCCBAAA@???@@AAAAAA@?=====>>>>>>>>=<;:::::;;;;;
'
ans =
'!T5æ00052s0B2D000010849FFC2000020978?0B8A000030A5400F8000041008]FB0B00005116ES09DA000061342_049A00007148DU0463000081774EFB280000918DBC06270000A0000"00000000B0000"00000000C0000"00000000D0000"00000000E0000"00000000F0000"00000000
'
  11 个评论
Stephen23
Stephen23 2019-1-16
"I mean if the output starts with !R it should automatically say it belongs to range frame. "
Read the data into a temporary variable. Parse the data, detect whatever you want. Use a switch operator to assign the variable to the variables StatusInfo, RangeInfo, etc., or use a structure and define the fieldnames.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by