MATLAB: How to take integer value in thesql to matlab ?

take integer value in mysql to matlab

Dear all, I wish take integer value for is the price of the stuff in mysql.
set(handles.text4,'String',mydata(1,2));
set(handles.text10,'string',mydata(1,1));
for example, mydata(1,1) is the price of the stuff in mysql
Thanks,
Dewi

Best Answer

Dewi - if mydata(1,1) is an integer, then convert it to a string with num2str and set that string in your text control
set(handles.text4,'String',num2str(mydata(1,2)));
set(handles.text10,'string',num2str(mydata(1,1)));