how can i solve this matlab

1 回表示 (過去 30 日間)
Bashar Fayiz
Bashar Fayiz 2020 年 11 月 30 日
コメント済み: Bashar Fayiz 2020 年 11 月 30 日
how can i solve this ? Using "for" loop with "if" statement generate two vectors "A" and "B" from vector C = [1:100] where vector A has the odd numbers of the vector B has the even number of vector C
  3 件のコメント
John D'Errico
John D'Errico 2020 年 11 月 30 日
That you need a full answer is not relevant. You need to do your own homework.
Bashar Fayiz
Bashar Fayiz 2020 年 11 月 30 日
i need full answer because i have exam after 2 days and i don't know how can i solve this

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

回答 (1 件)

David Hill
David Hill 2020 年 11 月 30 日
Look at mod() function
C(mod(C,2)==1)
  1 件のコメント
Bashar Fayiz
Bashar Fayiz 2020 年 11 月 30 日
i need full answer

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

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by