Sparse norm(S,2) is not available.
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello i get the error spare norm(S,2) is not available in my code at the line where i have
Mnrm = 2.5e+5;
scal = Mnrm/norm(A); % A = 10000x10000 sparse double
% Error using norm
% Sparse norm(S,2) is not available.
What could be the issue?
1 commentaire
Réponses (1)
Shiduo Yu
le 28 Juin 2021
The function norm doesn't support sparse matrix input. You can try full(sqrt(sum(abs(A(:)).^2))) for instead.
0 commentaires
Voir également
Catégories
En savoir plus sur Sparse Matrices 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!