Format DgenResults.m
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,15 +1,15 @@
|
|||||||
%% PART OF GUI FUNCTIONALITY %%
|
%% PART OF GUI FUNCTIONALITY %%
|
||||||
function output_txt = datatipp(~,event_obj)
|
|
||||||
% Display the position of the data cursor
|
% Display the position of the data cursor
|
||||||
|
function output_txt = datatipp(~,event_obj)
|
||||||
% obj Currently not used (empty)
|
% obj Currently not used (empty)
|
||||||
% event_obj Handle to event object
|
% event_obj Handle to event object
|
||||||
% output_txt Data cursor text string (string or cell array of strings).
|
% output_txt Data cursor text string (string or cell array of strings).
|
||||||
|
pos=get(event_obj,'Position');
|
||||||
|
output_txt={['X: ',num2str(pos(1),4)],['Y: ',num2str(pos(2),4)]};
|
||||||
|
|
||||||
pos = get(event_obj,'Position');
|
% If there is a Z-coordinate in the position, display it as well
|
||||||
output_txt = {['X: ',num2str(pos(1),4)],...
|
if length(pos) > 2
|
||||||
['Y: ',num2str(pos(2),4)]};
|
output_txt{end+1}=['Z: ',num2str(pos(3),4)];
|
||||||
|
end
|
||||||
% If there is a Z-coordinate in the position, display it as well
|
|
||||||
if length(pos) > 2
|
|
||||||
output_txt{end+1} = ['Z: ',num2str(pos(3),4)];
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user