Create matrix with random binary element in matlab
I want to create a matrix in matlab with 500 cell (50 row,10 column ), How I can create and initialize it by random binary digits? I want some thing like this in 50*10 scale as sample 3*4
0 1 1 1
0 0 0 0
1 1 1 1
and after it, how can get decimal equation of any row ? like row 1 is equal 7 in decimal
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
Answers:
Why not use randi
to generate random integers?
SEE COMPLETE ANSWER CLICK THE LINK
https://matlabhelpers.com/questions/create-matrix-with-random-binary-element-in-matlab.php
Comments
Post a Comment