KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
typecastx.m
Go to the documentation of this file.
1 
2 
3 /* (Autoinserted by mtoc++)
4  * This source code has been filtered by the mtoc++ executable,
5  * which generates code that can be processed by the doxygen documentation tool.
6  *
7  * On the other hand, it can neither be interpreted by MATLAB, nor can it be compiled with a C++ compiler.
8  * Except for the comments, the function bodies of your M-file functions are untouched.
9  * Consequently, the FILTER_SOURCE_FILES doxygen switch (default in our Doxyfile.template) will produce
10  * attached source files that are highly readable by humans.
11  *
12  * Additionally, links in the doxygen generated documentation to the source code of functions and class members refer to
13  * the correct locations in the source code browser.
14  * However, the line numbers most likely do not correspond to the line numbers in the original MATLAB source files.
15  */
16 
17 function varargout = typecastx(varargin) {
18 fname = " typecastx ";
19 disp(" ");
20 disp([" Detected that the mex routine for " fname " is not yet built. "]);
21 disp(" Attempting to do so now ... ");
22 disp(" ");
23 try
24  mname = mfilename(" fullpath ");
25 catch
26  mname = fname;
27 end
28 cname = [mname " .c "];
29 if( isempty(dir(cname)) )
30  disp([" Cannot find the file " fname " .c in the same directory as the "]);
31  disp([" file " fname " .m. Please ensure that they are in the same "]);
32  disp(" directory and try again. The following file was not found: ");
33  disp(" ");
34  disp(cname);
35  disp(" ");
36  error([" Unable to compile " fname " .c "]);
37 else
38  disp([" Found file " fname " .c in " cname]);
39  disp(" ");
40  disp(" Now attempting to compile ... ");
41  disp(" (If prompted, please press the Enter key and then select any C/C++ ");
42  disp(" compiler that is available, such as lcc.) ");
43  disp(" ");
44  disp([" mex( " cname " , "" -output "" , ",mname," ) "]);
45  disp(" ");
46  try
47  mex(cname," -output ",mname);
48  disp([ fname " mex build completed ... you may now use " fname " . "]);
49  disp(" ");
50  catch
51  disp(" ");
52  error([" Unable to compile " fname " ... Contact author. "]);
53  end
54  [varargout[1:nargout]] = typecastx(varargin[:]);
55 end
56 end
57 
58 }
59 
A variable number of input arguments.
function varargout = typecastx(varargin)
Definition: typecastx.m:17
A variable number of output arguments.