Azzera filtri
Azzera filtri

My function does not execute to the end but i have no errors!!

3 visualizzazioni (ultimi 30 giorni)
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 Commento
Rik
Rik il 3 Mag 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?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Graphics Objects in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by