Variable as placeholder in an "fopen" statement
古いコメントを表示
Still on the issue of a place holder , I am trying to write a code to name the output folder by subject name, I know typically it goes into the braces but this time arround it is not working
''
subject = "PO1"
fid = fopen(['/Users/addison/Documents/Data/"Results2"+{subject}.xls'],'w');
''
1 件のコメント
"I know typically it goes into the braces..."
with Python's Formatted String Literals: https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings
"...but this time arround it is not working"
which is not a big surprise with MATLAB.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!