필터 지우기
필터 지우기

How to suppress ans in a table

조회 수: 1 (최근 30일)
Rebecca Scott
Rebecca Scott 2016년 10월 18일
댓글: Walter Roberson 2016년 10월 18일
I have a 3 column table being produced as part of a while loop process. However on each table (ans=) comes up how can I suppress it without surpassing the table.
The code I am using is this so far.
clc clear all
for length = 1:0.04:1.16;
original = 1;
width = (0.005*(2-length));
ratio = [width length];
table(original,ratio ,length)
end

답변 (1개)

Image Analyst
Image Analyst 2016년 10월 18일
편집: Image Analyst 2016년 10월 18일
Add a semicolon at the end of the line of code
table(original,ratio ,length);
It's also not normally used at the end of a "for" line.
  댓글 수: 2
Rebecca Scott
Rebecca Scott 2016년 10월 18일
I found that this just hid all the tables (not just the ans= )
Walter Roberson
Walter Roberson 2016년 10월 18일
Put disp() around the table call

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by