[問題] 寫檔已回收

看板MATLAB作者 (晨星)時間16年前 (2009/04/24 14:28), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
請問各位 以下是我的程式碼 clear all syms A B C D E F G I a b c d e f g i; s = expand((a*A +b*B)^2); fid = fopen('test.txt', 'w'); fprintf(fid, '%s', s); fclose(fid); 錯誤訊息為 >> fprintf(fid, '%s', s) ??? Error using ==> fprintf Function is not defined for 'sym' inputs. 請問 如何存入 s 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.152.237

04/27 06:10, , 1F
fprintf(fid, '%s', sym(s));
04/27 06:10, 1F

04/27 06:11, , 2F
試看看這樣行不行:)
04/27 06:11, 2F

04/27 20:13, , 3F
感謝 但還是不行
04/27 20:13, 3F
文章代碼(AID): #19yLm5Nz (MATLAB)
文章代碼(AID): #19yLm5Nz (MATLAB)