Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matlab/Java GUI ..... help needed

Subject: Matlab/Java GUI ..... help needed

From: Animesh Pandey

Date: 22 Jun, 2011 05:28:02

Message: 1 of 7

How can I make a GUI where I can use the functionality of the Matlab Command Window ?
Its basically I want to make another Command Window ......... using Java/Matlab .... !

Please Help !
:)

Subject: Matlab/Java GUI ..... help needed

From: Nasser M. Abbasi

Date: 22 Jun, 2011 05:52:51

Message: 2 of 7

On 6/21/2011 10:28 PM, Animesh Pandey wrote:
> How can I make a GUI where I can use the functionality of the Matlab Command Window ?
> Its basically I want to make another Command Window ......... using Java/Matlab .... !
>
> Please Help !
> :)

use GUIDE. that is easy way to make GUI in Matlab.

Subject: Matlab/Java GUI ..... help needed

From: Krishna Kumar

Date: 22 Jun, 2011 07:02:04

Message: 3 of 7

"Animesh Pandey" wrote in message <itruh2$29e$1@newscl01ah.mathworks.com>...
> How can I make a GUI where I can use the functionality of the Matlab Command Window ?
> Its basically I want to make another Command Window ......... using Java/Matlab .... !
>
> Please Help !
> :)
Hi Animesh,
                 What exactly do you want to do with the additional command window.
Can use spell it out clearly, so that we can help you?

Subject: Matlab/Java GUI ..... help needed

From: Animesh Pandey

Date: 22 Jun, 2011 07:24:05

Message: 4 of 7

> Hi Animesh,
> What exactly do you want to do with the additional command window.
> Can use spell it out clearly, so that we can help you?

What happens is my java program is invoked in Matlab, its output is shown on command window, then user enters some value, then final output is sent to Matlab's fuzzy toolbox.
Now I want to show these functionality of command window on gui.

Is there a way I can build a GUI which is like a copy of Matlab Command Window ?????

Subject: Matlab/Java GUI ..... help needed

From: Krishna Kumar

Date: 22 Jun, 2011 09:40:05

Message: 5 of 7

"Animesh Pandey" wrote in message <its5al$i59$1@newscl01ah.mathworks.com>...
> > Hi Animesh,
> > What exactly do you want to do with the additional command window.
> > Can use spell it out clearly, so that we can help you?
>
> What happens is my java program is invoked in Matlab, its output is shown on command window, then user enters some value, then final output is sent to Matlab's fuzzy toolbox.
> Now I want to show these functionality of command window on gui.
>
> Is there a way I can build a GUI which is like a copy of Matlab Command Window ?????
Hi Animesh,
Perhaps this would suffice-
have an edit text field in your GUI. using sprintf, display the initial output there.
The user can enter the value in the edit text field, which you can access
and evaluate. This is the basic idea. Adapt it to your needs. I don't think replicating Matlab command window is possible.
HTH,
Krishna.

Subject: Matlab/Java GUI ..... help needed

From: Malcolm Lidierth

Date: 22 Jun, 2011 11:22:04

Message: 6 of 7

Animesh
You can easily pass a java reference between your Java code which that code can then use to paint your GUI. These could be MATLAB figures (Java Swing underneath) or JFrames, JPanels etc. created either from MATLAB or your program.
See Yair Altman's http://undocumentedmatlab.com/ blog for tips/tricks.

Subject: Matlab/Java GUI ..... help needed

From: Malcolm Lidierth

Date: 22 Jun, 2011 11:24:04

Message: 7 of 7

Animesh
You can easily pass a java reference between your Java code which that code can then use to paint your GUI. These could be MATLAB figures (Java Swing underneath) or JFrames, JPanels etc. created either from MATLAB or your program.
See Yair Altman's http://undocumentedmatlab.com/ blog for tips/tricks.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us