LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
dtmc_rand.m
1%{ @file dtmc_rand.m
2 % @brief Generates a random stochastic transition matrix
3 %
4 % @author LINE Development Team
5%}
6
7%{
8 % @brief Generates a random stochastic transition matrix
9 %
10 % @details
11 % Creates a random stochastic matrix of specified size.
12 %
13 % @par Syntax:
14 % @code
15 % P = dtmc_rand(n)
16 % @endcode
17 %
18 % @par Parameters:
19 % <table>
20 % <tr><th>Name<th>Description
21 % <tr><td>n<td>Size of the matrix (n x n)
22 % </table>
23 %
24 % @par Returns:
25 % <table>
26 % <tr><th>Name<th>Description
27 % <tr><td>P<td>Random stochastic transition matrix
28 % </table>
29%}
30function P=dtmc_rand(n)
31P=ctmc_randomization(ctmc_rand(n));
32end