Magic and Trace Function
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I was amaze to see following output: >> A=[2 3; 4 5]
A =
2 3
4 5
>> trace(A)
ans =
7
>> trace A
ans =
65
Que: Why am I getting answer of trace A as 65??
(ASCI Value of A is 65)
0 Commenti
Risposta accettata
Wayne King
il 14 Set 2012
Modificato: Wayne King
il 14 Set 2012
That's because the functional form you are using when you enter
>>trace A
is executing
>>trace('A')
and in this case, it is nothing more than
>>sum('A')
Just like
>>help conv
is the same as
>>help('conv')
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!