Publisher review:setWindowState - Maximizes, minimizes or restores figures SETWINDOWSTATE sets a figures state to maximimze,minimize or restoreThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.SETWINDOWSTATE(H,STATE): H is figure handle or a vector of figure handlesSTATE is a string or cell array of strings-'maximize' - maximize figure'minimize' - minimize figure'restore'- restore figureif STATE is a string the state is applied to all H. If state is a cell array the length STATE must equal that of H and each state is applied individually.Examples: h= figure;s = 'maximize';setWindowState(h,s) %sets h to maximizeh(1) = figure;h(2) = figure; s = 'minimize';setWindowState(h,s) %minimizes both figuresh(1) = figure;h(2) = figure; s = {'minimize','maximize'};setWindowState(h,s) %minimizes h(1) and maximizes h(2)setWindowState(h,'restore') %restores both windowsNotes: 1. Figures must have 'Visible' set to 'on' and not be docked for setWindowState to work.2. Routine does not work for releases prior to R14SP23. The Java calls are undocumented by Mathworks Requirements: ยท MATLAB Release: R2006b
setWindowState is a Matlab script for Development Tools scripts design by Matthew Whitaker.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
setWindowState - Maximizes, minimizes or restores figures
Operating system:Windows / Linux / Mac OS / BSD / Solaris