Thread Subject: mass-spring-damper

Subject: mass-spring-damper

From: PinkLab

Date: 12 Dec, 2009 17:54:06

Message: 1 of 4

I have built a mass-spring-damper model in simulink and now would like to prompt user to input values through m-file, any ideas or links or available examples on how to do that please?

Subject: mass-spring-damper

From: PinkLab

Date: 12 Dec, 2009 21:17:06

Message: 2 of 4

any help?

Subject: mass-spring-damper

From: Matt Fig

Date: 12 Dec, 2009 21:27:02

Message: 3 of 4

You could use the INPUT function, but in a case like this I would probably make a little GUI to get the inputs, or even use the built-in INPUTDLG.

Subject: mass-spring-damper

From: PinkLab

Date: 13 Dec, 2009 00:13:08

Message: 4 of 4

i have used the input functions but need to know how to link them, when i simulate my block and associate the callback how to assign the values taken from m-file and put them in the block to run?

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

Contact us at files@mathworks.com