I have a matrix A and i want to check only two rows of this matrix,and i dont want to check all the matrix.For example A=[row1;row2;row3;row4;row5;row6] and i want to check and run only the rows 1 and 5.How i will do that?

1 件のコメント

Jan
Jan 2015 年 4 月 16 日
You are aware, that we cannot know what "check and run" exactly means, are you?

サインインしてコメントする。

回答 (1 件)

Star Strider
Star Strider 2015 年 4 月 15 日

0 投票

I’m not sure what you’re doing, bu to address only the first two rows of ‘A’:
A(1:2,:);

2 件のコメント

Giannakis Stoukas
Giannakis Stoukas 2015 年 4 月 15 日
I want to run and check only two specific rows of a matrix.I dont want to use two for loops to run every element,but only the elementse of two specific rows that i know
Star Strider
Star Strider 2015 年 4 月 15 日
Clarifying, to address only rows 3 and 5:
A([3 5],:)

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSpecial Functions についてさらに検索

質問済み:

2015 年 4 月 15 日

コメント済み:

Jan
2015 年 4 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by