From: Mark Hard on
Hi,

I want a UI like the one shown in the pic I've linked to below to pop up once my code is finished.

http://i49.tinypic.com/2zqudsj.jpg

Basically what I want to happen is when they type a number in either box, in the window below the box I'd like an element of a vector to pop up. for example..

If they enter 17 I'd the bottom box to say

Stress = *whatever the value of x(17) is*

Strain = *whatever the value of y(17) is*

If you understand me.

Would this be difficult got me to code considering this is my first UI?

Any simplier solutions if that is the case would be most welcome.

Any help would be greatly appreciated.

Mark.
From: Nathan on
On Feb 17, 12:14 pm, "Mark Hard" <GerryTheLe...(a)hotmail.com> wrote:
> Hi,
>
> I want a UI like the one shown in the pic I've linked to below to pop up once my code is finished.
>
> http://i49.tinypic.com/2zqudsj.jpg
>
> Basically what I want to happen is when they type a number in either box, in the window below the box I'd like an element of a vector to pop up. for example..
>
> If they enter 17 I'd the bottom box to say
>
> Stress = *whatever the value of x(17) is*
>
> Strain = *whatever the value of y(17) is*
>
> If you understand me.
>
> Would this be difficult got me to code considering this is my first UI?
>
> Any simplier solutions if that is the case would be most welcome.
>
> Any help would be greatly appreciated.
>
> Mark.

There are two ways to do this in matlab, using GUIDE or manually
programming a GUI.

type GUIDE in the matlab command window to open a new instance of the
gui editor.

If you want to program it manually, here is a link to many examples
that will suit your needs:
http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples

Good luck.

-Nathan