hi there..i really new in matlab.i want to save data in database, where i use mysql as my database.
however, how to connect the query that we have made with the button in gui..for example, button insert.
Best Answer
Matt Fig has a good set ofexample GUI in the MATLAB File Exchange.
Basically, if you want the user to be able to insert arbitrary text, you create an edit uicontrol, and when you want to insert it into the mysql database, you get() the 'String' property of the uicontrol. If you want the user to be able to insert arbitrary numbers, you do much the same, except after you get the String property you validate that it has numbers like you need and then you use a routine such as str2double() to convert the string into numeric values.
I resolved the problem my self ...The thing is i have used some sort of key word in the database creation left,right,top,bottom so it is so value is not inserted also no error where there should be error saying these are keyword or some other ..it took for ever for me to find out..
Best Answer