Getting Error with fprintf

1 view (last 30 days)
Pratik Sheth
Pratik Sheth on 25 Jun 2015
Commented: Pratik Sheth on 25 Jun 2015
Why following program is displaying the value of B but not writing in a file.
How to solve this issue?
write = fopen('tempresults.dat','a');
syms T;
B = vpa(int(exp(-(65000.0)/(8.34*T)),273.15,573.15))
fprintf(write,'%e',B);

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 25 Jun 2015
A=double(B)
fprintf(write,'%e',A);

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!