how to identify rows and columns of a random array with a undetermind amont of rows or colloms
Afficher commentaires plus anciens
_______BEGINING OF CODE___________________
n=0
while n<5 || n>25
n=input('please enter a value 5<n<25---');
if n<5 || n>25
disp('the value isnt vaild,try again');
end
end
array=round(100*rand(n,n))
total_sum=0;
________END OF CODE________________
so basically if I wanted to find the sum of say row 2, how can I declare row 2 as B? so that row "n" can be the equivalent of its place in the alphabet.. example Row1=a Row2=b Row3=c exc... and column1=aa column2=bb exc..
Réponse acceptée
Plus de réponses (1)
fred brunn
le 10 Fév 2015
Modifié(e) : fred brunn
le 10 Fév 2015
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!