Matlab just says there is an error, but I don't see one. How do I know more about the error.

6 views (last 30 days)
Error in GetSteamZoneParameters (line 7) [ tcD ] = FindtcD( fhv );
I do not get any more description.
The GetSteamZoneParameters function works fine when I call it through the command window. But when I call this function through SAGD.m I get the error.
This code is a part of a simulator for steam injection in oil fields.

Answers (1)

Iain
Iain on 31 Jan 2014
Try calling, on the command line
dbstop if error
The program will stop and let you see what's going on at the point it throws an error.
  1 Comment
Ankit Bansal
Ankit Bansal on 31 Jan 2014
This did not help. The debugger just pointed to the line where the error occurred.
Error in GetSteamZoneParameters (line 7) [ tcD ] = FindtcD( fhv );
Output argument "angleOfInclination" (and maybe others) not assigned during call to "H:\MATLAB\CSI-mine\GetSteamZoneParameters.m>GetSteamZoneParameters".
Error in SAGD (line 29) [Qi, angleOfInclination, steamZoneRadius, steamZoneVolume ] = GetSteamZoneParameters( Qi,fhv, tD, cycle, rinj, Xinj, time, injTime, Tavg, Ti, Mr, Ts, reservoirThickness, length1);
Error in final (line 81) [ Cw, fhv, Mw, Mo, Mr, s,tD , tcD, WOR, OSR ] = SAGD( fPD,qo,length1, cumTime, cum_oil_tot,cum_wat_tot, cum_steam_tot, cycle, Ts,Ti, Xinj, API, Swi, phi, alpha,...

Sign in to comment.

Categories

Find more on Software Development Tools in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!