フィルターのクリア

About array and looping

1 回表示 (過去 30 日間)
Yoga Arviansyah
Yoga Arviansyah 2018 年 9 月 23 日
編集済み: Image Analyst 2018 年 9 月 23 日
Hii please help me.. How to display several array For example like this i have A = (ab Bc dd ee) And B = (ab dd xx yy zz) Then what is the code for display like this (xx yy zz) ?? By the way sorry for my english...
  2 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 9 月 23 日
a={'aA','bB'}
Yoga Arviansyah
Yoga Arviansyah 2018 年 9 月 23 日
It doesn't work

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

採用された回答

Image Analyst
Image Analyst 2018 年 9 月 23 日
Try this:
A
B
Putting the variable name on it's own line without a semicolon will report all the values of the array to the command window. Or you can click on the variable in the workspace to display it in a spreadsheet-like window.
  2 件のコメント
Yoga Arviansyah
Yoga Arviansyah 2018 年 9 月 23 日
But i still confused, can you tell me the code ??
Image Analyst
Image Analyst 2018 年 9 月 23 日
編集済み: Image Analyst 2018 年 9 月 23 日
You said "How to display several array" and then you said you had two arrays called A and B. Like I said, if you put them on their own line of code, they will be displayed. Just try it and see.
If you only want to display ONE array, which is the difference between two other arrays, you can also put that on its own line of code and either leave off the semicolon when you assign it
C = setdiff(A, B)
or put C on it's own line of code like I've been saying:
C

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品


リリース

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by