📄 squarerun.m
字号:
function M=SquareRun(Y)
% SYNTAX: SquareRun(Y)
% This function, which has no outputs, takes a history Y and displays it as a square image.
% It is assumed that Y is of an appropriate length, so that it can be reshaped into a square image.
% Ilya; Aug. 28, 2002
n = sqrt(size(Y,2));
imshow(reshape(Y(1,:),n,n));
iptsetpref('ImshowTruesize','manual')
truesize([500 500])
for i = 2:size(Y,1),
imshow(reshape(Y(i,:),n,n))
drawnow
%M(i-1) = getframe;
end
%movie(M)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -