看板 MATLAB 關於我們 聯絡資訊
請問大大 我想要儲存/讀取的檔名,其中含一個變數,這樣可以嗎? 也就是說(以下的程式是錯的,想請教正確的寫法該怎麼寫) i= 1 save ['name',num2str(i)] variables load ['name',num2str(i)]; 懇請解惑,謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.150.197
Raymond0710:要括號 save( ['name',num2str(i)], variables ) 11/24 21:11
Raymond0710:0001 存成字串是看看 11/24 21:32
Raymond0710:推錯= = 11/24 21:32
cholauda:大大~~出現錯誤訊息"Argument must contain a string.".. 11/24 21:54
cholauda:請問該怎麼辦?? 謝謝! 11/24 21:54
Raymond0710:variables 要加上'' ex 'y', 'x' 11/24 21:57
cholauda:感謝大大分享!!! 11/25 08:53