Problem with eval and char(13)
이전 댓글 표시
Hello
My problem :
chaine = b.BeamSequence.Item_1.BeamDescription with 1 change every loop
chainefinale = 'DM=1.3692
SEG=2' with a char(13) inside (before SEG)
the eval ([chaine '=' chainefinale]) return error.....
What can i do ?
Thanks
Alain
답변 (2개)
Walter Roberson
2013년 10월 21일
Don't use eval.
itemnumber = 1;
b.BeamSequence.(sprintf('Item_%d', itemnumber)).BeamDescription = chainefinale;
카테고리
도움말 센터 및 File Exchange에서 Variables에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!