MATLAB Answers

How to perform kmeans alogorithm through coding?

1 view (last 30 days)
Ass on 1 Jul 2020
Commented: Ass on 1 Jul 2020
I am trying to denoise the image using moving k-menas algorithm in matlab code. The code I have wriiten is not working because some codition in if loop unable to write. Please help me regarding this,


Rik on 1 Jul 2020
If your code is not working you will have to change your code.
Have a read here and here. It will greatly improve your chances of getting an answer.
John D'Errico
John D'Errico on 1 Jul 2020
Since you don't show the code you wrote, the answer reduces to write better code.
Otherwise, this forces someone to write complete code from scratch to do your project.
Odds are good that perhaps all someone needs to do is to look at your code to tell you how to improve it. Now which alternative is more likely to get you help, and in a timely way?
As far as "some condition in if loop" goes, that suggests mainly that you need to learn about loops and if statements in MATLAB anyway, since there is no if loop in MATLAB.
So show your code.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!