how to take integer value in mysql to matlab ??

1 回表示 (過去 30 日間)
dewi hastuti
dewi hastuti 2018 年 5 月 17 日
コメント済み: dewi hastuti 2018 年 5 月 18 日
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

採用された回答

Geoff Hayes
Geoff Hayes 2018 年 5 月 17 日
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)));
  1 件のコメント
dewi hastuti
dewi hastuti 2018 年 5 月 18 日
thanks for your information Geoff

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by