how to initialize population as matrix
Mostra commenti meno recenti
In image i treated pixels as population..how can i initialize image pixels as population in matrix..
1 Commento
Kalpana Dalwai
il 1 Lug 2017
Risposte (1)
Image Analyst
il 19 Giu 2017
Use ones(). For example to set up a matrix where every value is 10, do this
populationImage = 10 * ones(rows, columns);
If you want random values instead, use
populationImage = 10 * rand(rows, columns); % Range = 0 to 10.
Categorie
Scopri di più su Image Category Classification in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!