Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

A Simple Challenge To All Simulink Users! Can you do it??
Hai there. I have a problem which is hard to solve although i have
ask many simulink users. Nobody have solve it yet. So i would like to
challenge you to solve the problem. The problem is to create three
lines, that is two stagnant lines and one moving line in 2D in
simulink using XY block. Currently, XY block only let you to plot one
line in a figure. When the simulation button is click, the three
lines must be appear in a figure.If you use the command 'hold on' in
matlab command window, three lines will be appear, but once you close
the figure and simulate again, only one line will be appear which
make you to type the hold on command again. Its not proffesional
right ! So, can you think how to solve it?? Nobody have solve it yet.
The diagram is shown below.The line in the middle is the moving line
while the other two lines are stagnant. Remember, use simulink XY
block. GOOD lUCK MY FRIENDS!!

___________________________________

------------------------------------

____________________________________

Report this thread to moderator Post Follow-up to this message
Old Post
CHALLENGER
05-31-05 02:14 PM


Re: A Simple Challenge To All Simulink Users! Can you do it??
Hi challenger... let's see if I' good enough to solve your problem.
Just a little trick: with a right-click on the XY block, you can
"look under mask", and you'll see that this block is just a call to
an s-function called "sfunxy".
Then the next step: edit sfunxy, save it with a DIFFERENT name,
modify it so that it accepts two more inputs (that will be your
boundaries), create a (masked) subsystem that replicates the XY block
but uses your custom sfunxy...
Does it solve your problem?
Cheers,
Frank

CHALLENGER wrote:
>
>
> Hai there. I have a problem which is hard to solve although i have
> ask many simulink users. Nobody have solve it yet. So i would like
> to
> challenge you to solve the problem. The problem is to create three
> lines, that is two stagnant lines and one moving line in 2D in
> simulink using XY block. Currently, XY block only let you to plot
> one
> line in a figure. When the simulation button is click, the three
> lines must be appear in a figure.If you use the command 'hold on'
> in
> matlab command window, three lines will be appear, but once you
> close
> the figure and simulate again, only one line will be appear which
> make you to type the hold on command again. Its not proffesional
> right ! So, can you think how to solve it?? Nobody have solve it
> yet.
> The diagram is shown below.The line in the middle is the moving
> line
> while the other two lines are stagnant. Remember, use simulink XY
> block. GOOD lUCK MY FRIENDS!!
>
> ___________________________________
>
> ------------------------------------
>
> ____________________________________

Report this thread to moderator Post Follow-up to this message
Old Post
Frank Scretico
06-01-05 02:01 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Matlab archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:34 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.