MATLAB Answers

Provide a row vector as legend

2 views (last 30 days)
Pedro Oliveira
Pedro Oliveira on 4 Jan 2018
Hi,
I have a bar graph and I'd like to do a legend assigning the values of each column to a specific number which I have stored in a row vector. Since the values of the vector change, instead of writing these myself inside legend(), I'd like to be able to provide the row vector as an input.
Assuming a is my row vector, I tried doing this: legend(a)
But it didn't work.
What can I do?
Thanks in advance for your help.

  0 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.