|
-
June 25th, 2015, 04:30 PM
#1
facing problem in MATLAB simple code using fprintf
% This code is displaying the value of B but not printing in a file.
% please help me to solve this problem
write = fopen('tempresults.dat','a');
syms T
B = vpa(int(exp(-(65000.0)/(8.34*T)),273.15,573.15))
fprintf(write,'%e',B);
-
June 27th, 2015, 02:20 AM
#2
Re: facing problem in MATLAB simple code using fprintf
Did you try to find out if fopen() succeeds or not? If yes, did you try to find where the file was created? I can suppose it must be somewhere in system32, or maybe next to host app. Ultimately I would suggest to specify a full path to be sure where to look up.
Best regards,
Igor
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|