Hi, into row I want write for example iR1, where 1 is subscript. iR1 is current "i" in resistor "R1". This is my code:
symbol=char('R1');
T = regexprep(symbol, '([A-Za-z]+)(\d+)', '$1<SUB><FONT SIZE=-1>$2</FONT></SUB>');
T = regexprep(T, '(Alpha|Beta|Gamma|thetasym|piv|Delta|Epsilon|Zeta|Eta|Theta|Iota|Kappa|Lambda|Mu|Nu|Xi|Omicron|Pi|Rho|Sigmaf|Sigma|Tau|Upsilon|Phi|Chi|Psi|Omega|alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigmaf|sigma|tau|upsilon|phi|chi|psi|omega|upsih|lsquo|rsquo|sbquo|ldquo|rdquo|bdquo|dagger|Dagger|bull|hellip|permil|prime|Prime|lsaquo|rsaquo|oline|euro|trade|larr|uarr|rarr|darr|harr|crarr|loz|spades|clubs|hearts|diams|forall|part|exist|empty|nabla|isin|notin|ni|prod|sum|minus|lowast|prop|infin|ang|and|or|cap|cup|int|sim|cong|asymp|ne|equiv|le|ge|sube|supe|sub|sup|nsub|oplus|otimes|perp|sdot)', '&$1;');
current(1)=cellstr(strcat('<HTML>','i',T));
But width of row is too big,,,,,how can I set row width?
Thank you

댓글 수: 5

Image Analyst
Image Analyst 2014년 1월 19일
What is a "rown"?
john
john 2014년 1월 19일
Sorry...row name in uitable
Walter Roberson
Walter Roberson 2014년 1월 19일
In what respect is it too big? Are you referring to the width that it automatically chooses to display the cell in?
john
john 2014년 1월 20일
Yes Walter,
length of T is not 3, but more because of regexprep. So I do not know, what can I do.
Walter Roberson
Walter Roberson 2014년 1월 20일
What difficulty is being caused by length of T not being 3 ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2014년 1월 20일

0 개 추천

댓글 수: 2

john
john 2014년 1월 20일
OK, and how can I set width of row of header?
rnames = vertcat(current);
set(handles.uitable1,'RowName',rnames);
thank you
john
john 2014년 1월 22일
No idea?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

질문:

2014년 1월 19일

댓글:

2014년 1월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by