how to generate data from model

4 visualizaciones (últimos 30 días)
Lakshit Chugh
Lakshit Chugh el 15 de Jun. de 2020
Respondida: Sujay C Sharma el 15 de Jun. de 2020
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)

Respuestas (1)

Sujay C Sharma
Sujay C Sharma el 15 de Jun. de 2020
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)

Categorías

Más información sobre CubeSat and Satellites en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by