![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/9054787_1522130700946_DEF.jpg)
Quinlin Hamill
自 2016 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
How can I make a random array with values of either -1 or 1?
I'm trying to use randi to make a matrix filled with either -1 or 1 however randi also includes 0s.
8 years 前 | 2 个回答 | 0