Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Using the 'stack' function to combine an unknown number of matrices

Using the 'stack' function to combine an unknown number of matrices

Using the 'stack' function to combine an unknown number of matrices

Hi there, I've written a program which reads in a data table from MS Access and displays these values in a matrix then does a whole load of stuff and produces a separate data table for each of the values which have been read in (using the Rkadapt function). These tables have been labelled Z[0, Z[1, Z[2 etc where the subscript number pertains to the position of the relevant value in the initial matrix. The problem i'm having is that I need the program to work for an unknown number of values read into the initial matrix, and therefore an unknown number of Z[n matrices. The whole program has been engineered to do this apart from the following command:


It seems to me that there is no way of modifying this code so that an unknown number of Z matrices could automatically be evaluated by the stack command, i.e. If 70 Z matrices were required because 70 values were read into the initial matrix, the above code would have to be changed MANUALLY to stack all 70 together. I've tried everything I can think of to make the program do this for me and nothing seems to work! If anyone could help with this I would be so grateful!


RE: Using the 'stack' function to combine an unknown number of matrices

I don't understand.  If you've got a program, why do you need to stack all the matrices at once?  Why can't you loop on the stacking each matrix to the resultant from the previous stacking?


FAQ731-376: Eng-Tips.com Forum Policies

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close