data manipulation

조회 수: 4 (최근 30일)
Dominic Lawson
Dominic Lawson 2011년 3월 1일
Hello,
Can someone help with this problem please?
I have an array defined as a = (8+1/100):3/100:11
I can alter the structure using h = repmat(a',1,1000)
In the new array h every line has the same recurring value
Is it possible to alter the array once again so that for any h(n,:) there are 100 lines the same
To illustrate this on a smaller scale the new array would look something like
1 1 1
1 1 1
1 1 1
2 2 2
2 2 2
2 2 2
3 3 3
3 3 3
3 3 3
The above values are not the real ones and instead of just 3 lines being the same I would like 100
Hope this makes sense and that I'm not wasting anyone's time. I've been stuck on this for quite some time and haven't managed to track down the code.
Thanks

채택된 답변

Matt Fig
Matt Fig 2011년 3월 1일
I think this file does exactly what you are looking to do:
  댓글 수: 1
Dominic Lawson
Dominic Lawson 2011년 3월 1일
Thanks very much for the help

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 3월 1일
See also kron
  댓글 수: 2
Dominic Lawson
Dominic Lawson 2011년 3월 1일
Thanks very much for the help
Oleg Komarov
Oleg Komarov 2011년 3월 1일
+1

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by