CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2015
    Posts
    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);

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    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
  •  





Click Here to Expand Forum to Full Width

Featured