This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Torque Noise Source

Model zero-mean normally (Gaussian) distributed torque

  • Library:
  • Simscape / Driveline / Sources


The Torque Noise Source block generates zero-mean normally (Gaussian) distributed torque using the Random Number source in the Simscape™ Foundation library. The torque produced by the block depends on two factors:

  • The noise power spectral density input to the block

  • A random number seed that you control using the Repeatability and, as applicable, Seed parameters

The defining equation for the torque that the block generates is



  • T is the output torque.

  • PSD is the single-sided noise power spectral density.

  • N is a Gaussian random number with zero mean and standard deviation of one.

  • h is the sampling interval.



expand all

The power spectral density (PSD) of noise is the average noise power per unit of bandwidth, in (N*m)2/Hz.


expand all

Mechanical rotational conserving port associated with the base interface.

Mechanical rotational conserving port associated with the follower interface.


expand all

The values of the time step period and the initial time offset. If you specify a scalar value for step, the block assumes an offset value of 0.To specify a nonzero value for the initial time offset, specify the parameter values using the vector [step, offset]. The offset value must be less than the step value and greater than or equal to zero.

The random number seed is the number that initializes the random number generator. The seed is 0 or a positive integer. To control the random number seed, set this parameter to:

  • Not repeatable — The seed changes every time you simulate your model. The block resets the random seed using the MATLAB® random number generator command:

    seed = randi(2^32-1);
  • Repeatable — The seed is the same random number at the start of every simulation. The block sets the value using the same MATLAB random number generator command used by the Not repeatable parameter.

    When you add a Torque Noise Source block to your model from the Sources library, the block generates and stores a random value for the repeated seed. When you make a copy of the Torque Noise Source block from an existing block in a model, the copy generates a new random value for the repeated seed.

  • Specify seed — The seed is a number that you specify using the Seed parameter. The Seed parameter is only available when you choose Specify seed for the Repeatability parameter.

The seed must be 0 or a positive integer. This parameter is only available when you select Specify seed for the Repeatability parameter.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2016b