adding element to a matrix row
显示 更早的评论
hi,
i want to add to a matrix edhe next element to the next column
e.g
calculate an element
add to position matrix(1,1)
calculate next element
add to position matrix(1,2)
...
jump to next row and do the same ...
1 个评论
KALYAN ACHARJYA
2019-11-20
Hints:
element=calculate the element
for i=1:r
for j=1:c
mat(i,j)=element
element=calculate the element
end
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 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!