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.
댓글 수: 0
채택된 답변
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
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!