i have a=2x10 i need to use second row element how can i do it
i=1:length(a) i get elements of first row then how abt second row
please help me

 Réponse acceptée

Paulo Silva
Paulo Silva le 30 Juil 2011

0 votes

a(1,:) %first row
a(2,:) %second row

Plus de réponses (1)

mahaveer hanuman
mahaveer hanuman le 30 Juil 2011

0 votes

num = 100; source = randint(num,2);
i =num(1,:); j =num(2,:); parity = mod(source(i)+ source(j),2); index out of bound

1 commentaire

Paulo Silva
Paulo Silva le 30 Juil 2011
good luck getting the second row from a scalar value like the one from num

Connectez-vous pour commenter.

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by