Prints output to the screen. To change the precision of the output, use the format script command
Syntax |
Description |
---|---|
?command; |
Displays the output of the command on the screen This function does not return any data.
|
Examples
This example shows how the "?" command is used to display the result of the calculation on the screen.
?(5+5);
result:
10
This example shows how the "?" command is used to display strings.
?"file_"+"name_"+num2str(1);
file_name_1
[[NOTE:]] When the output is a matrix, the maximum length that can be displayed is 2000. This limitation does not apply to a string.
?1:2001;
matrices of length greater than 2000 are not displayed to the output
?num2str(1:2001)
1
2
3
⋮
2000
2001
See Also
List of commands , write , format , #