Clear Filters
Clear Filters

New installation 2020b legend error

4 views (last 30 days)
Sean Lineaweaver
Sean Lineaweaver on 19 Jan 2021
Answered: Maadhav Akula on 24 Jan 2021
I reinstalled Matlab2020 but legend.m is not working.
This is my Matlab version information:
>> ver
MATLAB Version: (R2020b)
MATLAB License Number: 505485
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 16299)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Version 9.9 (R2020b)
Deep Learning Toolbox Version 14.1 (R2020b)
Signal Processing Toolbox Version 8.5 (R2020b)
Statistics and Machine Learning Toolbox Version 12.0 (R2020b)
When I run the example in help legend.m, I get the following error messageL;
Error using legend (line 272)
Too many output arguments.
Trying to figure out what is going on,I usedThe "which" commandAndIt produced: >> which legend
C:\Program Files\MATLAB\R2020b\toolbox\matlab\scribe\legend.m
Can you please solve this?

Answers (1)

Maadhav Akula
Maadhav Akula on 24 Jan 2021
Might be an installation issue, please reach out to Mathworks Support:


Find more on Introduction to Installation and Licensing in Help Center and File Exchange





Community Treasure Hunt

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

Start Hunting!