how to add single quotes ' ' in a string?
Show older comments
I am trying to add into my signal 2 quote marks. for example:
signal.wav and I would like to change it likes this: 'signal.wav'
I have done this so far:
a=strcat(signal_data,'.wav'); which gives me a=signal.wav
bear in mind that the signal name is keep chaning as it is in loop.
signal.wav
fun.wav
example.wav
Accepted Answer
More Answers (1)
Fangjun Jiang
on 8 Oct 2020
Edited: Fangjun Jiang
on 8 Oct 2020
a='this include ''single quote'' and others.'
b="using 'string' is better"
1 Comment
GreyHunter
on 8 Oct 2020
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!