필터 지우기
필터 지우기

How to use Signal Analyzer App inside of a script

조회 수: 1 (최근 30일)
StoneCold555
StoneCold555 2018년 12월 12일
편집: StoneCold555 2018년 12월 17일
Hello There,
I want to use the Signal Analyze App inside of a script.
This script loads a .mat file and then starts the signal Analyzer app
The Problem ist that the Workspace Browser of the Analyzer app shows no variables.
If I enter the code directly to the Command Window it works just fine.
I think the Problem is that the workspace refreshes only after the script ends.
How can I solve this problem?
Any Help is appreciated
  댓글 수: 1
StoneCold555
StoneCold555 2018년 12월 13일
I tried it with 'whos' and 'evalin' first which didnt work.
Assigning seems to solve this Problem.
assignin('base', 'var', val)
I dont know if this is the prober way, but for now I will keep it this way

댓글을 달려면 로그인하십시오.

채택된 답변

StoneCold555
StoneCold555 2018년 12월 17일
편집: StoneCold555 2018년 12월 17일
Hello Honglei Chen,
The problem is that you cant operate with the app if there is no data to evaluate. You have to import the data via the app workspace browser first, but this is empty if you import the data and start the app within a MATLAB script.
With
assignin('base', 'var', val)
I can now 'activate' the workspace and the data is visible in the app workspace browser, so that is working.
Thanks for your input.

추가 답변 (1개)

Honglei Chen
Honglei Chen 2018년 12월 13일
Signal analyzer is capable of generating MATLAB script so you can run the script to accomplish what you did in the app. Maybe that's what you can use to achieve what you want?
HTH

카테고리

Help CenterFile Exchange에서 AI for Signals에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by