MATLAB Answers

Please Help me to combine the following data, Cut the data from the combined data and form a new data (screen shots are attached)

조회 수: 4(최근 30일)
I need to combine all the data in the workspace above so i created a excel as follows
filename = 'testdata.xlsx';
  1. I need to remove all "/" from the data
  2. I need to cut the data which starts with "M" and Ends with symbol "|" and save it as new data
Please help me regarding the same.
Thank you in advance.

  댓글 수: 1

로그인 to comment.

채택된 답변

YT 4 Feb 2019
You can use strrep to replace the forward slashes and then use regular expressions to capture the characters.
A = '/FF0A/-MFF0/-LDAO/-FF91/-F98D/|/-F860';
res = regexp(strrep(A,'/',''),'.*(M.*)\|','tokens');
% res{:}{:} = 'MFF0-LDAO-FF91-F98D';

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

Translated by