Matlab question

  • MATLAB
  • Thread starter ziad1985
  • Start date
  • #1
236
0
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 ?
 

Answers and Replies

  • #2
161
0
I think repmat() is what you need. Type help repmat at the prompt for instructions on the use.
 

Related Threads on Matlab question

  • Last Post
Replies
8
Views
2K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
9
Views
6K
  • Last Post
Replies
3
Views
6K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
10
Views
3K
  • Last Post
Replies
2
Views
2K
Top