フィルターのクリア

could anyone help me why the command line execution is getting displayed in the command window while having semicolon at the end of the statement.

2 ビュー (過去 30 日間)
I have run my matlab code having semicolon at the end of each matlab command.
If i used semicolon that command execution should not appear in the command window.
But when i run the code that particular command line execution gets displayed in the command window.
command line:
A=c(:,particle)==cluster,cluster,particle;
Could anyone please help me on this.

採用された回答

Walter Roberson
Walter Roberson 2019 年 5 月 14 日
編集済み: Walter Roberson 2019 年 5 月 14 日
You have
A=c(:,particle)==cluster,cluster,particle;
That is equivalent to the three commands
A=c(:,particle)==cluster
cluster
particle;
Possibly you intended
A = c(:,particle) == [cluster;cluster;particle];
which would test whether column #particle of c happens to contain the value of cluster in the first and second row, and the value of particle in the third row.

その他の回答 (1 件)

KSSV
KSSV 2019 年 5 月 14 日
Read about echo. YOu can make echo on where ever you want to dipslay the command line. And make echo off to stop it.
  2 件のコメント
jaah navi
jaah navi 2019 年 5 月 14 日
ok.But i have not used echo on and echo off in my matlab code.
But the result of command line is getting displayedin the command window.
KSSV
KSSV 2019 年 5 月 14 日
Try echo. May it is default on...

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by