Please Help me to combine the following data, Cut the data from the combined data and form a new data (screen shots are attached)
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rakesh Yadav Kodari
am 4 Feb. 2019
Kommentiert: Rakesh Yadav Kodari
am 4 Feb. 2019
I need to combine all the data in the workspace above so i created a excel as follows
filename = 'testdata.xlsx';
xlswrite(filename,[F,G,H,I,J,K,L,M,N,O,P,Q]);
- I need to remove all "/" from the data
- 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 Kommentar
Akzeptierte Antwort
YT
am 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';
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!