Info

This question is closed. Reopen it to edit or answer.

I need help with my legend

2 views (last 30 days)
Kelsey Pettrone
Kelsey Pettrone on 16 Nov 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
I dont know whats wrong with this. Its not working. Im trying to get the 2 user inputs in the legend.
legend(app.Axes2,[userinput +' '+['Obesity','Drug','Alcohol','Smoking']],[userinput2,+' '['obesity','drug','alcohol','smoking']])
  2 Comments
Star Strider
Star Strider on 16 Nov 2020
What result do you want?
What information is in the plot?
What are the ‘userinput’ variables, and what do you want the legend (and plot) to look like?

Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!