Plotting a function from the Communication toolbox in App designer
1 view (last 30 days)
Show older comments
tyler seudath on 15 Mar 2021
Answered: Monisha Nalluru on 19 Mar 2021
I am trying to plot a rician impulse and frequency response in App designer and the simulated object image is not staying on the screen. Can someone assist please, this is the code below:
fig = uifigure;
uialert(fig,'Error! Both parameters must have the same amount of values!','Re-enter parameters!');
% app.Plot1.YDir = 'reverse';
% xlabel(app.Plot1,'Excess tap delay');
% ylabel (app.Plot1,'Relative power (dB)');
% title(app.Plot1,'Power Delay Profile');
fD= (Carrierfrequency_Hz )*(Mobilespeed_ms)/(3e8); %dopplershift= Mobile_speed * Carrier frequency /speed of light
ricianChan = comm.RicianChannel('SampleRate',samplerate, ...
x1 = randi([0 1],1000,1);
Monisha Nalluru on 19 Mar 2021
The ricianChan function doesnot support passing axes or uiaxes as input.
As workaround you can use the data from ricianChan and plot accordingly by targeting the axes in the app designer.
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!