Is it possible to place format specifier in figure window tittle of uitable?
1 次查看(过去 30 天)
显示 更早的评论
I want to add a title on my uitable with this code. But it did not work.
for n = 1:total
f(i) = figure('Position',[00+(i*150) 200 510 300],'Name','Unit %d', n);
t(n) = uitable(f(n));
t(n).ColumnName = {'State','X MW','P(X)','(X-C) MW','P(X-C)','P(X)'};
t(n).Data = Data;
t(n).Position(3) = t(n).Extent(3);
t(n).Position(4) = t(n).Extent(4);
end
0 个评论
采纳的回答
Walter Roberson
2017-10-27
f(i) = figure('Position',[00+(i*150) 200 510 300],'Name', sprintf('Unit %d', n));
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!