Erase this character ''←''

7 views (last 30 days)
I cant not find a way to delete this ← char. Any help?
  4 Comments
Dimitrios Poulos
Dimitrios Poulos on 25 Apr 2022
This is a text variable in a cell. This text was extracted from a mail. Unfortunately I cant share the mail.
My problem is that this strange charachters does not allow me to create a correct matrix with ''clear'' lines and it is mixing the final result. f.e: Mathworks had to be in column 6th and not under Matlab. I suppose that if I'll find a way to delete this char, my final matrix will be fine. I hope I gave more light about what I want to do.

Sign in to comment.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 25 Apr 2022
Edited: Fangjun Jiang on 25 Apr 2022
double('←')
ans = 8592
strrep({'←Matlab←←'},char(8592),'')
ans = 1×1 cell array
{'Matlab'}
strrep({'←Matlab←←'},'←','')
ans = 1×1 cell array
{'Matlab'}
  1 Comment
Dimitrios Poulos
Dimitrios Poulos on 25 Apr 2022
@Fangjun Jiang Its working. Thanks a lot!!!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by