Matrix with numerical sequence
显示 更早的评论
Hi!
i am creating a matrix (n,m), which are the input values. the matrix needs to be like this:
[1 4 2 .... 4 2 4 1;
4 16 8 ....16 8 16 4;
2 8 4 ... 8 4 8 2;
.... .....;
4 16 8 ...16 8 16 4;
2 8 4 .... 8 4 8 2;
4 16 8 ....16 8 16 4;
1 4 2 .....4 2 4 1]
how do i code this in matlab?
2 个评论
Birdman
2018-1-12
The pattern is not clear to me. Can you be more specific?
marco lopes
2018-1-12
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Algebra 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!