3 matrix in a loop
1 次查看(过去 30 天)
显示 更早的评论
hi any body help me if any body know i am new user of matlab. i have 3 matrix of 2*2. And i want to use the matrix one by one in a funtion one at a time just like loop. what i do i dnt know please help
采纳的回答
Pourya Alinezhad
2013-10-21
a=[1 2;4 6]
b=[5 6;8 7]
c=[5 8;8 5]
d={a b c};
for i=1:3
x=sin(cell2mat(d(i)))
end
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!