aaa
aaa

Reputation: 1

How to include apostrophe's to display a string

I'm trying to display to a user 'streamlines'. How would I do this?? I've tried using disp() with " inserted with failure.

How would I go about doing this?

Upvotes: 0

Views: 281

Answers (2)

marcos
marcos

Reputation: 42

I think you´re asking how to write the apostrophe, right? if is that you just have to double the apostrophe and it will show up like just one. It would be like: ''streamlines''.

Upvotes: 0

Tim Biegeleisen
Tim Biegeleisen

Reputation: 522181

Single quotes need to be escaped by placing a single quote in front of them. Something like this:

username = '''streamlines'''
disp(username)

Upvotes: 1

Related Questions