📄 replay_instant.m
字号:
function replay_instant(mesh,t,times,solv,sole,step,filename)% Rendering of nodal/edge element solution for% transient Maxwell problem in a cavity% at a particular instant t of timeN = length(times);if (nargin < 6), filename = []; end;if (nargin < 5), step = 1; end;if (size(solv,2) ~= N), error('Wrong number of samples in solv'); endif (size(sole,2) ~= N), error('Wrong number of samples in sole'); endfprintf('Displaying %d data samples\n',N);figure; clf; figno = gcf;idx = find(times == t);for i=idx plotiterate(mesh,sole(:,i),solv(:,i),times(i),figno); if (~isempty(filename)) epsfile = [filename , '_t' , num2str(times(i),3) , '.eps']; fprintf('Printing to file %s\n',epsfile); print('-depsc','-r600',epsfile); endend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -