Why can't I use crand() in matlab
Show older comments
It is supposed to generate a complex random number, and it worked on my friend's PC, but not mine.
Accepted Answer
More Answers (1)
Bobby Cheng
on 30 Jun 2025
Edited: Steven Lord
on 30 Jun 2025
0 votes
rand in MATLAB has complex support since R2022a. See the "Random Complex Numbers" example on that documentation page.
[SL: hyperlinked the function name and added mention of the example.]
Categories
Find more on R Language in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!