My function does not execute to the end but i have no errors!!
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Rik
2019-5-3
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?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!