?? graphloadfromfile.m
字號:
function Graph = GraphLoadFromFile(FileName)
% Loads Graph from Mat-file
%
% Receives:
% FileName - string - the name if the file to store the data to. If the file exists, it is overwritten
%
% Returns:
% Graph - Graph Struct - the graph or empty struct.
%
% Created:
% Lev Muchnik 16/08/2005, Tel.: 972-054-4326496, 89 Beacon, Somerville, MA, USA
error(nargchk(1,1,nargin));
error(nargoutchk(0,1,nargout));
try
if exist(FileName,'file')==2
load(FileName,'Graph','-mat');
if ~ObjectIsType(Graph,'Graph','The operation can only be performed on Graphs')
Graph = [];
end
else
Graph = [];
end
catch
Graph = [];
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -