Please help if you can
Mostrar comentarios más antiguos
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 comentario
Oleg Komarov
el 28 de Feb. de 2012
Do you need that just for customization or for other specific reasons?
Respuesta aceptada
Más respuestas (3)
Sean de Wolski
el 28 de Feb. de 2012
doc fprintf
1 comentario
Oleg Komarov
el 28 de Feb. de 2012
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
el 28 de Feb. de 2012
0 votos
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
el 29 de Feb. de 2012
0 votos
2 comentarios
Jan
el 29 de Feb. de 2012
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
el 1 de Mzo. de 2012
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!