Please help if you can
이전 댓글 표시
Can you make matlab give answers in line with "ans = " , here is a photo(adress bellow text) of what i need , if this is possible please tell me how to do that. Thanks in advance http://imageshack.us/photo/my-images/28/42343019.jpg/
댓글 수: 1
Oleg Komarov
2012년 2월 28일
Do you need that just for customization or for other specific reasons?
채택된 답변
추가 답변 (3개)
Sean de Wolski
2012년 2월 28일
doc fprintf
댓글 수: 1
Oleg Komarov
2012년 2월 28일
fprintf('\b %f',3)
This option obviously doesn't consider the get(0,'format') in use and the type of variable.
Thus, as Walter says, it is possible but would require quite some coding, which honestly IMO is in general not justified (and specifically in this case, since the OP did not motivate the use of it).
Walter Roberson
2012년 2월 28일
0 개 추천
It is possible in theory: you can overwrite the method named "display". Which can be a big nuisance to do, but it is possible.
Milos Ivankovic
2012년 2월 29일
0 개 추천
댓글 수: 2
Jan
2012년 2월 29일
You can fake it by using "input('>> ', 's'); disp('ans = '); eval(S), input('>> ', 's');". I cannot check this currently, but it should look like a real command line output.
Milos Ivankovic
2012년 3월 1일
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!