필터 지우기
필터 지우기

How to create personal data matrix using x = gen_clusterdata(pNO)?

조회 수: 4 (최근 30일)
Banuji
Banuji 2023년 1월 13일
답변: Aditya Jha 2023년 1월 17일
The question for my assignment is as follows:
Use the MATLAB code “gen_clusterdata” to generate a personal data matrix. Use the MATLAB command: x = gen_clusterdata(pNO), where pNO will be your phone number. This codewill generate a data matrix x of 4 columns that represent the features and n rows that would represent the objects / cases.
I've been doing an exercise on k-means clustering and typically create a random dataset when practicing k-means and clustering. I'm unsure what this question means since I can't find a command like this in the MathWorks documentation either. It's mandatory to do it as the question says, so any guidance would be appreciated! I've basically completed everything required but since I didn't understand what this question means, I just generated a random dataset temporarily. After communicating with the teacher of the course they said that I'm supposed to use this command so I'm genuinely confused sincce I'm unsure how to go about it.

답변 (1개)

Aditya Jha
Aditya Jha 2023년 1월 17일
Hi!
We do not have any function called gen_clusterdata use clusterdata instead.
>> T1 = clusterdata(X,3);
For more details on “clusterdatarefer to the following documentation:

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by