2017-06-05 51 views

回答

0

您可以在MATLAB中使用fprintf將您想要的多項式寫入文件。請檢查以下代碼:

str = 'x^(4) + x^(3) + x^(2) + x + 1' ; 
fid = fopen('check.txt','w') ; 
fprintf(fid,'%s\n',str) ; 
fclose(fid) ;