Changing two variables in a for loop
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I would like to change two variables in a for loop. I have a matrix A and would like to create a new matrix that looks like:
A(1,1) 0 0 0 A(1,2) 0 0 0 A(1,3) ...
A(2,1) 0 0 0 A(2,2) 0 0 0 A(2,3) ....
Where the new matrix is 4 times as many coloums as the original matrix and the same number of rows (in the end 139 x 3774).
What is the best way to do this?
Thanks in advance for your help.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!