No BSD License  

Highlights from
CoCoMac

image thumbnail
from CoCoMac by James Allen
Download CoCoMac.org cortical connectivity data, model it as a network, and simulate epileptic sprea

fc_saveas_pajek(net,netLabels,nodeCoords)
function [] = fc_saveas_pajek(net,netLabels,nodeCoords)

if isempty(net) | isempty(netLabels)
    errordlg('Cannot save - there must be some network data to save!')
    return;
end

% Ask the user where to save mat file
[save_name, save_path] = uiputfile('.net', 'Save as Pajek .net file');
saveFile = [save_path save_name];

% If the user did not select a file..
if isequal(save_path,0) | isequal(save_name,0)
    msgbox('Did not save data!', 'Warning,', 'warn')
    % Otherwise...
else
    try
        pajeksave(net,netLabels,nodeCoords,saveFile);
        fc_saveLog(['Saved simulation data to: ' saveFile]);
    catch
        errordlg(['Error saving data structure to ' saveFile ': ' lasterr])
    end
end


return


Contact us at files@mathworks.com