Adding random numbers together
이전 댓글 표시
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
Jan
2013년 1월 31일
Overwriting the function "sum" by a variable called "sum" also will lead to strange effects.
채택된 답변
추가 답변 (3개)
Sean
2013년 1월 31일
편집: Walter Roberson
2013년 1월 31일
Sean
2013년 1월 31일
편집: Walter Roberson
2013년 1월 31일
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!