Plotting graph in the appdesigner from the object handle - h
Show older comments
Hi,
I have code below that plots the graph via object handle 'h'. I would like to embed this plot into appdesigner and I am having problem with doing that. Normally I would plot in the appdesigner with plot(app.UIAxes,x,y). How could I do it if I only have handle 'h' ?
RFCF1 = 2400e6; % 2.4 GHz
RFBW1 = 200e6; % 200 MHz
IFBW1 = 20e6; % 20 MHz
IMT1 = [99 0 21 17 26;
11 0 29 29 63;
60 48 70 86 41;
90 89 74 68 87;
99 99 95 99 99];
writecell(num2cell(IMT1), 'imt1.txt')
h = OpenIF('IFLocation', 'MixerOutput')
h.SpurFloor = 85;
addMixer(h,IMT1, RFCF1, RFBW1, 'low', IFBW1);
report(h);
figure(1);
show(h)
h.Mixers(1).MixingType = 'high';
report(h)
figure(2);
show(h);
Thank you,
Accepted Answer
More Answers (1)
S.R.
on 17 Jul 2020
0 votes
6 Comments
Adam Danz
on 18 Jul 2020
See the first comment within the code under step 4.
S.R.
on 18 Jul 2020
Adam Danz
on 19 Jul 2020
Which line is line 47? I don't think that error is from any of the lines in the code you shared above. If that line is generated from the code in my answer, please provide the entire error message and share the line of code producing the error.
Also, have you tried running only the code from my answer?
S.R.
on 20 Jul 2020
S.R.
on 20 Jul 2020
Adam Danz
on 20 Jul 2020
Sounds good! Glad I could help out.
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!