How to perform kmeans alogorithm through coding?

1 view (last 30 days)
AS
AS on 1 Jul 2020
Commented: AS 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,
  3 Comments
John D'Errico
John D'Errico on 1 Jul 2020
Edited: 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!