convert equation to matlab code
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,How i can convert equation to matlab code?? like this , root( summation from i=1 to N [N(i)]Square ) plz can any one help me :(
0 Commenti
Risposte (1)
Image Analyst
il 27 Nov 2011
Did you try
result = sum(N .^ 2)
but I'm not sure if N is the last index to sum to, or if it's the name of the array you're summing. You can't have it both ways. In my code above I summed over all elements in the N array.
0 Commenti
Vedere anche
Categorie
Scopri di più su Data Types in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!