Is it possible to place format specifier in figure window tittle of uitable?
조회 수: 2 (최근 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에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!