MATLAB Answers

0

Matlab encoding issue?

Sato Koyama さんによって質問されました 2019 年 4 月 1 日
最新アクティビティ Sato Koyama さんによって コメントされました 2019 年 4 月 3 日
Recently, Matlab R2018B has been outputting bolded things oddly.
It recognises the function (or the input), what it displays is weird.The following is an example of when I inputted help plot.
>>help plot
rnqv Linear plot. %supposed to read plot instead of rnqv.
rnqv(X,Y) plots vector Y versus vector X. If X or Y is a matrix,
then the vector is plotted versus the rows or columns of the matrix,
whichever line up. If X is a scalar and Y is a vector, disconnected
line objects are created and plotted as discrete points vertically at
X.
The bolded parts displayed shows rnqv but when highlighted, shows plot correctly. This is the same for other bolded text in the command window.
The same issue applies with the editor. Here is an example
%% Tiju ju vif Wqtluiqr 4
%supposed to read %% This is for Workshop 4
The bolded comments gets messed up and cannot be deciphered.
I'm guessing it's to do with the encoding and the bytes in a bolded character as I have seen this problem before in another language. However, I don't have a clue on how to fix this issue. Can anyone help on this?

  7 件のコメント

Walter Roberson
2019 年 4 月 1 日
I saw that, but I noticed that the comment section about Workshop 4 was irregular in offset.
Sato Koyama 2019 年 4 月 1 日
Here are other examples.
>> help linspace
njpurbdf Linearly spaced vector.
njpurbdf(X1, X2) generates a row vector of 100 linearly
equally spaced points between X1 and X2.
linspace, where a,c,e,i are inconsistent with char('[word]'+2)
>> help help
ifnr Display help text in Command Window.
ifnr NAME displays the help for the functionality specified by NAME,
such as a function, operator symbol, method, class, or toolbox.
NAME can include a partial path.
help, where h,e, are inconsistent with char('[word]'+2)
Instead, they are showing a pattern of char('[word]'+1). I checked how far up the alphabet (from a) this pattern is consistent with, and it turns out to be up to 'k.'
Just to reiterate, highlighting the bolded text in the command window does show the actual text (e.x. bolded help shows ifnr but after highlighting with a cursor shows help (probably because highlighting removes text formatting/decoration.)) Comments on the other hand, don't, but copy-pasting the text that's messed up pastes the actual text.
I'm starting to think that there's something going on with the behaviours of bolded text in matlab. I switched the editor to an external text editor (sublime text 3) and shows the messed up text and fixes the issue temporarily (not on command window) but not knowing what caused this annoys me.
Guillaume
2019 年 4 月 1 日
You may want to:
  • uninstall any 3rd party toolbox and remove all
  • remove all folders that are not subfolder of matlabroot from the path
in case, a third party tool is messing up matlab. If that fails, maybe reinstall matlab.

サインイン to comment.

1 件の回答

回答者: Philip Borghesani 2019 年 4 月 1 日
 採用された回答

Could you have a corrupted font file? What happens if you change the default fonts?

  1 件のコメント

Sato Koyama 2019 年 4 月 3 日
Okay, I got it fixed. I set the font back to default (monospace) and it displays correctly.
I didn't think that inconsolata would create this issue (maybe it is corrupted. im not sure) but oh well. thank you.

サインイン to comment.



Translated by