My function does not execute to the end but i have no errors!!
1 view (last 30 days)
Show older comments
When i call this function, it's called correctly but it's not executed to the end. I have no errors in Matlab.
function output_txt = GraphCursorCall(obj, event_obj, Nodes)
% Display data cursor position in a data tip
% obj Currently not used
% event_obj Handle to event object
% output_txt Data tip text, returned as a character vector or a cell array of character vectors
h = event_obj.Target;
pos = event_obj.Position;
ind = find(h.XData == pos(1) & h.YData == pos(2), 1); %until here, EXECUTED
output_txt = {['Node ', num2str(ind)], ['OUTD: ', num2str(Nodes.OUT(ind))], ['IND: ', num2str(Nodes.IN(ind))]}; %NOT EXECUTED
disp("FINE"); %NOT EXECUTED
end
1 Comment
Rik
on 3 May 2019
This time I edited your question for you. Next time, please use the tools explained on this page to make your question more readable.
Have you tried putting a break point at the first line of code of this function to see if it runs in the first place?
Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!