I first created a file:
>> fid=fopen('mongiss.lib', 'w')
fid =
9
>> matrix=[1:3; 4:6]
matrix =
1 2 3
4 5 6
>> fprintf(fid, '%d %d\n',matrix)
ans =
12
>> fclose(fid)
ans =
0
>> load mongiss.lib
>> mongiss.lib
??? Attempt to reference field of non-structure array.
>> mongiss
mongiss =
1 4
2 5
3 6
Then I tried to open it for appending without sucsess:
>> fid=fopen('mongiss.lib'. 'a')
??? fid=fopen('mongiss.lib'. 'a') | Error: Unexpected MATLAB operator.
What is wrong?

 채택된 답변

TAB
TAB 2011년 10월 24일

0 개 추천

fid=fopen('mongiss.lib','a')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

태그

질문:

2011년 10월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by