Can anybody help me?

1 次查看(过去 30 天)
Darsana P M
Darsana P M 2017-4-8
[N,V]=eig(A), gives eigen decomposition of matrix A. How to find the eigen decomposition of all matrices in a cell of size 1x100, using a loop ?

回答(1 个)

GEEVARGHESE TITUS
use cellfun
[n v]=cellfun(@(x) eig(x),c,'UniformOutput',false)
where c is your input cell and n and v are also cell

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by