You can also use the isResolvedSource and isResolvedDestination if you are concerned with a specific link direction. The isResolved method will return FALSE if the link is "unresolved" in either direction.
You need to load the model to memory, otherwise the link will appear as unresolved.
In the example code below, the source is the model element, so I will use isResolvedSource.
myModel = 'CruiseControl_TestSuite';
load_system(myModel)
myLinkSet = slreq.load(myModel); % load linkset associated with model
mySources = sources(myLinkSet); % get list of link sources
% Check if first link is resolved
outLinkTest = slreq.outLinks(mySources(1)); % link source is CruiseOnOff inport in model
first_link_resolved = isResolvedSource(outLinkTest); % should be TRUE
% CHECK TO MAKE SURE THIS WORKS
% Open model, remove first inport "CruiseOnOff", then save
open_system(myModel)
% MANUALLY REMOVE CruiseOnOff INPORT
% Re-check whether link is resolved
first_link_resolved = isResolvedSource(outLinkTest); % should now be FALSE
You can use a for loop to iterate through all of the link sources in the link set.