Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

undefined function 'a' in kmeans segmentation.How can i correct this?

1 view (last 30 days)
while i run the code for kmeans segmentation,i am getting an erron in line 2 of one code and a function error in the other.How to correct this?
  4 Comments
Image Analyst
Image Analyst on 23 Mar 2019
How did you call it? What did you pass in for the badly-named a? For example did you call it like this:
[s1, n_RBC]=kmns_seg_R(73); % Pass in 73 for a
or did you use a different value? You didn't just click the green run triangle without defining a did you?
Sri Vasudha Bankupalle
Sri Vasudha Bankupalle on 25 Mar 2019
i guess there should be a main function to run this code..how to create it?

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!