Can anybody help me?

1 view (last 30 days)
Darsana P M
Darsana P M on 8 Apr 2017
[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 ?

Answers (1)

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

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!