do smithplot on uifigure
이전 댓글 표시
Hi,
I'm trying to create smithcharts, preferably like subplot side by side, in uifigure but received error:

Then I tried to do them in subplot by following an example from documentation page and it worked.

However, when I changed "plot" to "smithplot", I still received the same error as before.
Is there another way around to plot smith chart on uifigure? I have to use uifigure because I use it to contain other plots and measurements too.
Thanks!
채택된 답변
추가 답변 (1개)
Janakinadh
2020년 5월 12일
Please use the below script (2020ad onwards)
a = uifigure;
g = uigridlayout(a);
g.RowHeight = {'1x'};
%%
Sa = sparameters('passive.s2p');
%%
panel1 = uipanel(g);
panel1.AutoResizeChildren = 'off';
s1 = smithplot(panel1);
add(s1,Sa.Frequencies,rfparam(Sa,1,1))
panel2 = uipanel(g);
panel2.AutoResizeChildren = 'off';
s2 = smithplot(panel2);
add(s2,Sa.Frequencies,rfparam(Sa,1,2))

카테고리
도움말 센터 및 File Exchange에서 Circuit Envelope Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!