Optimize legend command?
1 次查看(过去 30 天)
显示 更早的评论
Hi, I am struggling with LaTeX in legend, so far I wrote legend like:
legendStrings = string(n);
l = legend(legendStrings);
set(l,'interpreter','latex','string','$x^$'+string(n))
I want legend as and s on, but when I didn't write anything after ^ in string argument, MATLAB show me error.
Note:
n is an array of number and I'm plotting ananoymous function using flot withour loop.
Please optimize these lines and guide me how to display correctly.
Thanks
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!