How to get harmonic distortion measurements from spectrum analyzer block within Simulink?

I need to work on the harmonic distortion measurements and then deploy the simulink model to Android device. I can use getMeasurementsData in matlab code, but how do I do this in Simulink since matlab code cannot be deployed to Android?

2 Kommentare

Hi Danyang,
You can use MATLAB function block in Simulink model to write MATLAB code. Please find details in below example:
Also, you can use Array Plot block with Android devices. Please find details in below example:
Hi Sutanu Maiti,
To use dsp.SpectrumAnalyzer function in Matlab function block, I need to call it as extrinsic, but it shows error 'The extrinsic function ... is not available for standalone code generation'. Could you please suggest me how to solve this problem?
Thanks!

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Version

R2018b

Gefragt:

am 6 Mär. 2019

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by