Can anybody help me?

[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)

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 Linear Algebra in Help Center and File Exchange

Asked:

on 8 Apr 2017

Community Treasure Hunt

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

Start Hunting!