Previous in Forum: Mouse Problem   Next in Forum: Log In Problems
Close
Close
Close
3 comments
Rate Comments: Nested
Active Contributor

Join Date: Mar 2009
Location: Malaysia
Posts: 12

Matlab Programming

04/05/2010 1:56 PM

I am now facing a problem on my programing,stuck. for example:i wish to randomly permutation on Feeders and Component,which mean feeder come first then following by the component . the result should like that: [feeder1 comp1 feeder2 comp2........] I had use the randperm command but not wat I want.i wish to random pick the data from the set of value that i had set ,not generate by rand function. who know to solve it? thanks......

__________________
Seeking .........Not regreting........
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#1

Re: matlab programing

04/05/2010 5:08 PM

My Matlab demo expired before I had the opportunity to work with it. I find Delphi or C easer to use.

There should be a for next or a while loop available there somewhere which you can couple to a lookup table to define/set the execution sequence.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Active Contributor

Join Date: Mar 2009
Location: Malaysia
Posts: 12
#2
In reply to #1

Re: matlab programing

04/06/2010 1:16 AM

well, I am not really understand what you mean. May be you can interpret it by using an example.

__________________
Seeking .........Not regreting........
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#3
In reply to #2

Re: matlab programing

04/07/2010 1:40 AM

After discovering the raw power of low level programing I don't use MatLab or LabView etc.

google for "Matlab syntax" and find ForNext , Case , Function etc

There are however many alternatives to the above.

in Delphi your program may look like this :-

For counter := 1 to endvalue Do

begin

ReadFeeder (counter);

CalculateFeeder (counter);

OutputFeeder (counter);

Next counter;

Where ReadFeeder etc are subroutines designed at doing the work.

most probably having the case of if statements inside (more or less like a meat grinder - meat in mince out)

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Register to Reply 3 comments

Previous in Forum: Mouse Problem   Next in Forum: Log In Problems
You might be interested in: Stock and Strip Feeders, Parts Feeders, Solids Feeders

Advertisement