Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Error in Custom datatip string function
Replies: 2   Last Post: Jul 14, 2013 2:32 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nima Nikvand

Posts: 11
Registered: 12/30/12
Error in Custom datatip string function
Posted: Dec 30, 2012 11:13 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello everyone,

I am using a custom datatip string function in my GUI, the call to the function is made in the following format:

'SnapToDataVertex','on', ...

where datatextbox is the custom datatip function and the following is it's format:

function [txt,pos] = datatextbox(~,event_obj)
pos = get(event_obj,'Position');
txt = {['Vector Length: ',num2str(pos(1))],['MOS: ',num2str(pos(2))]};
myhandles = guidata(gcbo);
sobj1= myhandles.sobj1;
sobj2 = myhandles.sobj2;
myhandles.txt = txt;
[imno,imind,vlength,ssim,axes] = lselection(sobj1,sobj2,pos);

However, I am getting a "Error in Custom datatip string function" error message when I add the last function (lselection) in my function definition. If I remove this function everything works alright. The lselection function works alright when used separately, I need to be able to pass and update the position information from this function and I am wondering what could be the problem and I appreciate any suggestions.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.