To add a legend to a graph plotted using ltiview() in Matlab, you can follow these steps:
In the ltiview window, select "Tools" and "Edit Plots."
From the "Edit Plots" window, select the plot you want to add a legend to.
Under "Plot Properties," click "Data Cursor."
Click on the plot where you want to add the legend entry. This will add a data cursor to the plot.
Double-click on the data cursor to open its properties dialog.
In the "Data Cursor Properties" dialog, check the "Edit text" box.
In the "Text" dialog, enter the legend text you want to use.
Close the "Text" dialog, and then close the "Data Cursor Properties" dialog.
Repeat steps 4-8 for each additional plot you want to add legend entries for.
Save your changes by selecting "File" and "Save" from the ltiview window menu.
Now when you display the plot, the legend should appear on it.
gistlibby LogSnag