how to remove quote

I have variable
g=strcat('Cord',filename)
g = 'Cord1'
I want to convert g from char to double to obtain g=Cord1

댓글 수: 1

Jan
Jan 2018년 10월 2일
This sounds like the typical problem of indices hidden in names of variables. Don't do this. See the exhaustive explanations at: Tutorial: Why to avoid EVAL

답변 (0개)

이 질문은 마감되었습니다.

질문:

2018년 10월 1일

마감:

2021년 8월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by