Adding random numbers together
Afficher commentaires plus anciens
So I'm using this code
% Create a vector of 53 random #s and analyze them.
r = rand([53,1])
% The sum of all the random numbers
sum=sum(([53,1]))
disp(result)
But it doesn't seem to be working.
I'm new to ML
How do I find the sum (and product) of the random numbers?
1 commentaire
Jan
le 31 Jan 2013
Overwriting the function "sum" by a variable called "sum" also will lead to strange effects.
Réponse acceptée
Plus de réponses (3)
Sean
le 31 Jan 2013
Modifié(e) : Walter Roberson
le 31 Jan 2013
Sean
le 31 Jan 2013
Modifié(e) : Walter Roberson
le 31 Jan 2013
Sean
le 31 Jan 2013
0 votes
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!