feacture vector in two classes

조회 수: 5 (최근 30일)
maede mandi
maede mandi 2021년 10월 24일
답변: Sathvik 2024년 11월 11일 5:49
Hi everyone, i'm new in matlab and just found an exersice in internet and have problem to do it, can you plz help me. tanx.
Create 2 classes with guassian random data, one class has 100 data, the other one has 150 data, for each class consider difference mean vector with 2 features, and at the end plot it with desired covarrience for them.
A=randn(1,100);
B=randn(1,150);

답변 (1개)

Sathvik
Sathvik 2024년 11월 11일 5:49
Hi
You can use the "mvnrnd" function with the desired mean vector and covariance matrix to generate the random data. For more information on the "mvnrnd" function, you can refer to the following documentation page:

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by