How to close linearSystemAnalyzer window programmatically

조회 수: 3 (최근 30일)
Paolo Minotti
Paolo Minotti 2016년 7월 6일
답변: Divyajyoti Nayak 2025년 6월 3일
I opened the Linear System Analizer window programmatically, as
linearSystemAnalyzer(plottype,sys);
Now I want to close it. Programmatically.
How can I do it?
close all
doesn't work, unfortunately.
Let's assume that I do not have the handle to the Linear System Analyzer figure.
  댓글 수: 1
Marco C.
Marco C. 2018년 12월 1일
Can someone please answer this question, I'm curious too

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

답변 (1개)

Divyajyoti Nayak
Divyajyoti Nayak 2025년 6월 3일
The best way to programmatically open and close apps is to store the handle of the app while creating them and using the 'close' function.
lsa = linearSystemAnalyzer;
close(lsa);
If the handle cannot be stored initially, then the handle can be retrieved using the 'findall' function.
linearSystemAnalyzer
lsa = findall(0,'Name','Linear System Analyzer');
close(lsa);
Here's some documentation to help you out:

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by