how to generate data from model

조회 수: 2 (최근 30일)
Lakshit Chugh
Lakshit Chugh 2020년 6월 15일
답변: Sujay C Sharma 2020년 6월 15일
I have to genarate x data which follows U(0,4pie) distribution how can i generate it ?
and how to generate data for y which follows U(0,10)

답변 (1개)

Sujay C Sharma
Sujay C Sharma 2020년 6월 15일
Hi,
You can use the random function with additional parameters specifying the distribution and its parameters along with the size of the data to be generated. Here is an example of how you can create a 2 X 3 matrix which follows U(0,4*pi):
X = random('Uniform',0,4*pi,2,3)

카테고리

Help CenterFile Exchange에서 CubeSat and Satellites에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by