Plotting graph in the appdesigner from the object handle - h
Afficher commentaires plus anciens
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,
Réponse acceptée
Plus de réponses (1)
S.R.
le 17 Juil 2020
0 votes
6 commentaires
Adam Danz
le 18 Juil 2020
See the first comment within the code under step 4.
S.R.
le 18 Juil 2020
Adam Danz
le 19 Juil 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.
le 20 Juil 2020
S.R.
le 20 Juil 2020
Adam Danz
le 20 Juil 2020
Sounds good! Glad I could help out.
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!