how to combine multiple output in one lines?

E.g. I have a matlab function for example,
for i=(1:25) b=35-i
how do I get it to make an answer like
**************************
i | answer
1 | 34
2 | 33
3 | 32
4 | 31
********************
instead of
ans
34
ans
33
ans
32
ans
31

댓글 수: 1

Jan
Jan 2013년 9월 23일
We cannot suggest improvements of your code, when you do not show it.

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

답변 (1개)

카테고리

도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2013년 9월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by