I have a problem with the legend function in MatLab. I would like to link the name of the plotted variables to the legend, so that I only have to change the variables in the plot function.
If I would like to change the plotted variables to [b, c]I have to change the strings in the legend also. Does someone know a way to overcome this?
Thanks in advance,