How can I get data from evaluating a function, say y=x^2+5 and put it in table?
조회 수: 1 (최근 30일)
이전 댓글 표시
How can I get data from evaluating a function, say y=x^2+5 for x=0.1 to 0.9 for 50 points in between and put it in table?
댓글 수: 0
채택된 답변
the cyclist
2021년 9월 23일
x = linspace(0.1,0.9,50);
y = x.^2+5;
tbl = table(y.');
댓글 수: 3
the cyclist
2021년 9월 23일
The semicolon at the end of a line of MATLAB code suppresses the output. So just leave the semicolon off of any line you want displayed to the command window.
x = linspace(0.1,0.9,50)
y = x.^2+5
tbl = table(y.')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!