1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab question

  1. Feb 8, 2007 #1
    I have a [4 X 4] matrix , and another one which is [n4 X n4] n is an integer.
    my question is there a way to fill the [n4 X n4] with n times the small [4 X 4] one.
    meaning if the [4 X 4] is a
    what i want to do is
    a a a a
    a a a a
    a a a a
    a a a a
    n is 4 , so it's [16 X 16]
    any certain function to use ? or it would have to be a For Loops to use ?
  2. jcsd
  3. Feb 8, 2007 #2
    I think repmat() is what you need. Type help repmat at the prompt for instructions on the use.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Matlab question
  1. MATLAB questions (Replies: 0)

  2. MATLAB question (Replies: 2)

  3. MATLAB question (Replies: 1)

  4. Matlab question (Replies: 2)

  5. Matlab question (Replies: 10)