필터 지우기
필터 지우기

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