generarting vector or standard normal in matlab
1 次查看(过去 30 天)
显示 更早的评论
iI want to generate random variables z_i, where z_ is a standard normal varible (i,e. with mean zero and variance 1) and if I have a vector z=[z_1 z_2..........z_n] ' then theorectically zz^T should give an identity matrix. how can I generate z in matlab so that z *z^T is an identity matrix. where z^t is transpose of z
0 个评论
采纳的回答
rakshit gupta
2023-6-10
编辑:rakshit gupta
2023-6-12
One possible way to generate a random vector z in MATLAB such that z * z.' is an identity matrix is to use the randn function to generate a vector with normally distributed random variables, and then normalize it so that its length is equal to 1.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!