Mean, Mode and Median
17 ビュー (過去 30 日間)
古いコメントを表示
How can I find Mean, Mode and Median in matlab (array) without using any inbuilt functions ? Thanks
0 件のコメント
回答 (2 件)
Image Analyst
2015 年 4 月 13 日
Just use regular programming, like you learned in your first programming course. Use a for loop to check each element. Since it's almost certainly homework, we can't really do much more for you.
0 件のコメント
Jan
2015 年 4 月 13 日
You can't. Even an assignment of a variable calls the built-in susassgn. You need at least for loops, comparisons (which mean the built-in functions le, ge etc.). See: http://www.mathworks.com/matlabcentral/answers/38787-what-can-be-programmed-without-any-built-in-functions . So please ask the one, who has created this homework question, for valid instructions.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!