Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display function #489

Closed
Nelson-numerical-software opened this issue Aug 8, 2021 · 0 comments · Fixed by #492
Closed

display function #489

Nelson-numerical-software opened this issue Aug 8, 2021 · 0 comments · Fixed by #492

Comments

@Nelson-numerical-software
Copy link
Collaborator

Nelson-numerical-software commented Aug 8, 2021

'disp' vs 'display'

It must also support overloading

example:

name = 'Alice';   
age = 12;
X = [name,' will be ',num2str(age),' this year.'];
disp(X)
display(X)

special case:

 display(X,'YYY')

YYY =

    'Alice will be 12 this year.'

display([])
     []

disp([])


X =3

X =

     3

display X
X

display(X)

X =

     3


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant