Is it possible to place format specifier in figure window tittle of uitable?

2 ビュー (過去 30 日間)
Kim Lopez
Kim Lopez 2017 年 10 月 27 日
回答済み: Walter Roberson 2017 年 10 月 27 日
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

採用された回答

Walter Roberson
Walter Roberson 2017 年 10 月 27 日
f(i) = figure('Position',[00+(i*150) 200 510 300],'Name', sprintf('Unit %d', n));

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by