Felipe K. F.
Felipe K. F.

Reputation: 61

How to escape single quote (') character in scilab?

I want to print the symbol ' (quote)

for example:

disp (' ' ')

and the output that I would like to get is: '

But, as the ' is the string delimiter, I can't use that way.

Is there a code which I can use instead of the symbol ' ?

thank you

disp (' ' ')

Upvotes: 3

Views: 1699

Answers (1)

Felipe K. F.
Felipe K. F.

Reputation: 61

I have found the answer. Inside a string, if you write quotes twice (''), Scylab will know that you mean only one quote, '.

So, to display: '

you have to write ''''

Upvotes: 3

Related Questions