Hi, im a bit confusing on the mode function in MATLAB. I have look throught some books and say we can use mode function to find "the most show up value" and "show up how many times". For example :(adsbygoogle = window.adsbygoogle || []).push({});

r =

2 2 3

3 3 3

4 2 1

the most show up value is 3 and it shows up 4 times. The mode function will be mode(3,4)??How can i use it in .m file? Like i have "r" and now i wanna use mode function to find the 3 and 4??Is there any example for that? coz lots of books just discrible what is mode function and didnt say how to use. Could anyone give me a hand on this?

Thanks

Ivan

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB mode function

Loading...

Similar Threads for MATLAB mode function |
---|

MATLAB MATLAB: forces acting on an object |

MATLAB Matlab histogram |

MATLAB Sovling Bernoulli's differential equation in matlab? |

MATLAB Matlab-like software |

MATLAB Sliding mode observer in Matlab or Simulink |

**Physics Forums - The Fusion of Science and Community**