Finding the infinity norm of a cell array
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have three matrices named in the cell array below. A function is used to calculate the upper triangular matrix of these three matrices. To do this i need to find the infinity norm of the matrices e.g. mu = norm(U, inf) but i get an error when running the code as it says U must be single or double. How do i find the infinity norm of a cell array? also tried to use vecnorm this also produced the same error.
mats={mat4, mat5, mat6};
nmats=length(ec15ess_mats);
0 commentaires
Réponses (1)
Star Strider
le 3 Avr 2019
I’m not sure what you want to do.
Try this:
mats = {rand(4), rand(5), rand(3)};
mu_mats = cellfun(@(x)norm(x,Inf), mats);
Experiment to get the result you want.
0 commentaires
Voir également
Catégories
En savoir plus sur Linear Algebra dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!