Click to See Complete Forum and Search --> : Simulink (Matlab) into VB.
dompie
October 24th, 2004, 12:36 PM
Hi guys..
I make a simulation in Simulink(products of Matlab)
But I want to create stand alone application with VB..
So I can run the simulation without installing Matlab programs in another computer..
Does anyone knows how to do this..?
Thanx
Regards,
Andiga D
yiannakop
October 25th, 2004, 09:50 AM
Well I am not sure if you can do this for simulink, but I am sure you can use Matlab code in Visual C++/Visual Basic etc by creating dlls in matlab. In any case, you will have to install a matlab plug-in in your compiler (e.g Visual Studio)
ososbango
June 21st, 2006, 11:20 AM
Hi all
This is my 1st time to write in this forum.
I have some questions which i wanna to know there answers
Q1:How slider change value of edit text in integer form?
-> i.e. i have built GUI for may program using Matlab and i put in it slider for temp change and when it change it change value in edit text but there are some fraction appear when i change slider so i wanna Integer number only as it decading for temp.
http://www.megaupload.com/?d=DGTL3RKX
any ideas will be excellent
Thanks in advance
Regards,
osos
yiannakop
June 26th, 2006, 09:26 AM
Q1:How slider change value of edit text in integer form?
-> i.e. i have built GUI for may program using Matlab and i put in it slider for temp change and when it change it change value in edit text but there are some fraction appear when i change slider so i wanna Integer number only as it decading for temp.
Hi. I am not sure I get excactly what you mean. I suppose you want to use a slider in a Matlab GUI, in order to change the (integer) value of an edit box. Here's what you need to do:
1) Create an interface (using matlab's guide). Add a slider and a text box (names: id_slider and id_text_box).
2) In the callback of the slider write the following:
function IDSlider_Callback(hObject, eventdata, handles)
handles.id_slider = get(hObject, 'Value');
set(handles.id_text_box, 'String',sprintf('%d',handles.id_slider));
Regards,
Theodore :wave:
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.