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 comentarios

Walter Roberson
Walter Roberson el 1 de Abr. de 2019
Weird!
Which OS are you using? And please show us the output of opengl info
Sato Koyama
Sato Koyama el 1 de Abr. de 2019
Windows 10 Home (64bit), version 1803, build 17134.648
out of opengl info
Version: '4.6.0 NVIDIA 398.36'
Vendor: 'NVIDIA Corporation'
Renderer: 'GeForce MX150/PCIe/SSE2'
RendererDriverVersion: '24.21.13.9836'
RendererDriverReleaseDate: '24-Jun-2018'
MaxTextureSize: 32768
Visual: 'Visual 0x09, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer, Antialias 8 samples)'
Software: 'false'
HardwareSupportLevel: 'full'
SupportsGraphicsSmoothing: 1
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
Extensions: {376×1 cell}
MaxFrameBufferSize: 32768
Walter Roberson
Walter Roberson el 1 de Abr. de 2019
You could drive an NVIDIA driver update; I know there have been some already this year.
Stephen23
Stephen23 el 1 de Abr. de 2019
Note that 'rnqv' is char('plot'+2)
Walter Roberson
Walter Roberson el 1 de Abr. de 2019
I saw that, but I noticed that the comment section about Workshop 4 was irregular in offset.
Sato Koyama
Sato Koyama el 1 de Abr. de 2019
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
Guillaume el 1 de Abr. de 2019
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.

Iniciar sesión para comentar.

 Respuesta aceptada

Philip Borghesani
Philip Borghesani el 1 de Abr. de 2019

0 votos

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

1 comentario

Sato Koyama
Sato Koyama el 3 de Abr. de 2019
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 1 de Abr. de 2019

Comentada:

el 3 de Abr. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by