i want to change [3,2,4](1x3 matrix) to 324(1x1 matrix) any help?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hassaan Riaz
le 16 Nov 2018
Modifié(e) : Bruno Luong
le 16 Nov 2018
i know i can do it by 3*100 + 2*20 + 4 but is there any cleaner method?
0 commentaires
Réponse acceptée
Plus de réponses (2)
Bruno Luong
le 16 Nov 2018
Modifié(e) : Bruno Luong
le 16 Nov 2018
This one produces NaN for overflowed data
>> polyval([3 2 4],10)
ans =
324
>> str2double(char([3 2 10]+'0'))
ans =
NaN
0 commentaires
Voir également
Catégories
En savoir plus sur Logical 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!