isVisible
Description
returns the visibility of the scope as logical, with visibility
= isVisible(scope
)1
(true
) for visible.
Examples
View Sine Wave on Time Scope
Create a sinusoidal signal with two tones, one at 0.3 kHz and the other at 3 kHz.
t = (0:1000)'/8e3; xin = sin(2*pi*0.3e3*t)+sin(2*pi*3e3*t);
Create a timescope
object and view the sinusoidal signal by calling the time scope object scope
.
scope = timescope(SampleRate=8e3,... TimeSpanSource="property",... TimeSpan=0.1); scope(xin)
Run release
to allow changes to property values and input characteristics. The scope automatically scales the axes.
release(scope);
Hide the scope window.
if(isVisible(scope)) hide(scope) end
Show the scope window.
if(~isVisible(scope)) show(scope) end
Input Arguments
scope
— Scope object
timescope
object
Scope object whose visibility you want to query.
Example: myScope = timescope; visibility =
isVisible(myScope)
Output Arguments
visibility
— Scope visibility
1
| 0
If the scope window is open, the isVisible
function
returns 1
(true
). Otherwise, the
function returns 0
(false
).
Version History
Introduced in R2020a
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)