matlab help displaying blank squares instead of words

41 views (last 30 days)
逸琳 顾
逸琳 顾 on 9 Nov 2024 at 7:37
Edited: John Kelly on 21 Nov 2024 at 21:04

Answers (1)

Pavl M.
Pavl M. on 9 Nov 2024 at 8:44
Just update your PC OS and your TCE/NCE Matlab or Simulink codecs / encoding ( in Settings / Preferences )
change to UTF32.
This is the help pages from Octave for example:
help zoom
'zoom' is a function from the file /usr/share/octave/8.0.91/scripts/plot/util/zoom.m
-- zoom
-- zoom (FACTOR)
-- zoom on
-- zoom off
-- zoom xon
-- zoom yon
-- zoom out
-- zoom reset
-- zoom (HFIG, OPTION)
Zoom the current axes object or control the interactive zoom mode
of a figure in the GUI.
Given a numeric argument greater than zero, zoom by the given
factor. If the zoom factor is greater than one, zoom in on the
plot. If the factor is less than one, zoom out. If the zoom
factor is a two- or three-element vector, then the elements specify
the zoom factors for the x, y, and z axes respectively.
Given the option "on" or "off", set the interactive zoom mode on or
off.
With no arguments, toggle the current zoom mode on or off.
Given the option "xon" or "yon", enable zoom mode for the x or
y-axis only.
Given the option "out", zoom to the initial zoom setting.
Given the option "reset", store the current zoom setting so that
‘zoom out’ will return to this zoom level.
If the first argument HFIG is a figure, then operate on the given
figure rather than the current figure as returned by ‘gcf’.
See also: pan, rotate3d.
Additional help for built-in functions and operators is
available in the online version of the manual. Use the command
'doc <topic>' to search the manual index.
Help and information about Octave is also available on the WWW
at https://www.octave.org and via the help@octave.org
mailing list.
This is from TCE Matlab 2024:
help zoom
zoom - Enable zoom mode
You can use zoom mode to explore data by interactively changing the
limits of axes.
Creation
Syntax
zoom option
zoom
zoom(factor)
zoom(fig,___)
zoom(ax,___)
z = zoom
z = zoom(fig)
Input Arguments
option - Zoom mode option
'on' | 'off' | 'reset' | 'out' | 'xon' | 'yon' | 'toggle'
factor - Zoom factor
positive number
fig - Target figure
Figure object
ax - Target axes
Axes object
Properties
Motion - Dimension
'both' (default) | 'horizontal' | 'vertical'
Direction - Direction
'in' (default) | 'out'
RightClickAction - Action to perform on right-click
'PostContextMenu' (default) | 'InverseZoom'
ContextMenu - Context menu
empty GraphicsPlaceholder array (default) | ContextMenu object
ButtonDownFilter - Zoom suppression callback
[ ] (default) | function handle | cell array | character vector
ActionPreCallback - Function to execute before zooming
[ ] (default) | function handle | cell array | character vector
ActionPostCallback - Function to execute after zooming
[ ] (default) | function handle | cell array | character vector
Enable - Zoom mode state
'off' (default) | 'on' | on/off logical value
FigureHandle - Figure object
Figure object
UseLegacyExplorationModes - Legacy mode
'off' (default) | 'on' | on/off logical value
Examples
Set Baseline Zoom Level
Constrain Zoom in Tiled Chart Layout
Create Mode Context Menu
See also regionZoomInteraction, zoomInteraction, pan, rotate3d, linkaxes
Introduced in MATLAB before R2006a
Documentation for zoom
Other uses of zoom
Pls. accept my the full answer to the question.
  3 Comments
逸琳 顾
逸琳 顾 on 21 Nov 2024 at 12:24
"GBK" is a Chinese encoding, should I change this? And by the way, how to change codecs in matlab?
Very appreciated.
Pavl M.
Pavl M. on 21 Nov 2024 at 17:38
Edited: John Kelly on 21 Nov 2024 at 21:04
Change Documentation Language for Installed Documentation
For Japanese, Korean, and Chinese systems, you can install the documentation in your system language. Installing documentation in Spanish, French, Italian, or German is not supported.
To install and view documentation in your system language:
  1. Make sure that the locale or display language setting on your system is set to Japanese, Korean, or Chinese. In some cases, you might have to install a language pack or fonts for the language that you want to select. Each platform uses different settings and options to specify locale and display language. For more information, see Set Locale and Display Language.
  2. Go to the Home tab, and in the Environment section, click Preferences and select MATLAB > Help.
  3. Set the Documentation Location to Installed locally.
  4. Select a Language option.
To change the desktop language:
  1. On the Home tab, in the Environment section, click Preferences and select MATLAB > General.
  2. Select an option for the Desktop language preference.
-------------------------------------------------------------------------------------------------------------------------------------------------OK, GBK is great!
Tnx for not being ignoring!
There are simplified, traditional Mandarin and a few more official dialects of Chineese, the symbols differ many from Latin and so appropriate encoding.
Fro what you checked, your locale is already setup correctly to zh_CN and terminal encoding is GBK,
so you think in yout Matlab help pages the display is not adapted to Chineese encoding? In fact not yet for Traditional (Full) Chineese and not yet for Mongolian, Kra-Dai and which great other friendly civilization languages?
So locale has not affected your help pages (may be a separate folder on your filesystem where the help files are placed, check it , it may be yet not translated nor encoded to Chineese, than ask the Matlab distributor).
Leave it as UTF8 if all displayed right.
In Preferences Matlab settings options menu, Editor tab
UTF32 covers more symbols and so better for Ch than UTF8, but they made it using again separate GBK codec, while there are a few other codecs exist for Chineese, Korean and Japaneese (most similar family, if you like erudition please find which additional language are most similar in written and spoken to Chineese, Korean and Japaneese), Khmer and Hokchu and Mongolian are more far from Chineese than Korean and Japaneese by similarity of most used symbols? not just one, also separate for each Korean, Chineese and Japaneese and what about to unite the Korean, Chineese, Altai, Hakka, Hokchiu, Hokkien, and Mongolian and Vietnameese and Khmer and Japaneese for more seamless communication and understanding into 1 tongue like PIDGIN of course even if they are very like in alphabeth they may differ in mentality, many countries put as their anthem "Unity is Strength" I know, man, but in natural language and what they need they to get unity.
There're many not yet used, large number of unused 32-bit values in UTF32, that is why I proposed to utilize the gaps instead of surrogate encoding.

Sign in to comment.

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!