Mean, Mode and Median

16 visualizzazioni (ultimi 30 giorni)
Vishula Gamaetige
Vishula Gamaetige il 13 Apr 2015
Risposto: Jan il 13 Apr 2015
How can I find Mean, Mode and Median in matlab (array) without using any inbuilt functions ? Thanks

Risposte (2)

Image Analyst
Image Analyst il 13 Apr 2015
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.

Jan
Jan il 13 Apr 2015
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.

Categorie

Scopri di più su Loops and Conditional Statements 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!

Translated by