Search 5,000,000+ questions and answers.

Frequently Asked Questions

Can I use C and Fortran programs with MATLAB?

MATLAB Frequently Asked Questions
MATLAB's MEX-file facility allows user to use C and Fortran subroutines as MATLAB m-files. It is also possible to use MATLAB as a computational engine for C/Fortran subroutines.
Related Questions

How do I use f90SQL with my Fortran programs?

f90SQL - FAQs
Add the f90SQL modules to your Fortran source. You do this by adding the following statement at the beginning of your program:
Related Questions

Can I access my C/Fortran library routines in PDL?

PDL::FAQ - Frequently asked questions about PDL
Yes, you can, in fact it is very simple for many simple applications. What you want is the PDL pre-prosessor PP ( PDL::PP ). This will allow you to make a simple interface to your C routine. The two functions you need to learn (at least first) are pp_def which defines the calling interface to the function, specifying input and output parameters, and contains the code that links to the external library. The other command is pp_end which finishes the PP definitions.
Related Questions

Question: Can I extract the Dataplot source code to use in my own Fortran/C programs?

Frequently Asked Questions
The short answer is yes. The Dataplot source code is publically available and we do not place any restrictions on its use. However, the Dataplot code is not structured as independent libraries. This means that you will have to do a little work in order to use it with your own applications. In some cases, it is a fairly trivial process. In other cases, it may not be worthwhile. Dataplot funnels text output through the single routine DPWRST.
Related Questions

Question: How do I integrate Dataplot with my own Fortran/C programs?

Frequently Asked Questions
You have a Fortran program and you would like to perform some Dataplot analysis for the output of that program. Often, this just means you would like to use Dataplot to graph the data. In other cases, you would acutally like to perform some numeric analysis as well. On the other hand, you might want to have Dataplot call your Fortran/C program to perform some analysis that is not available in Dataplot. We will discuss these separately.
Related Questions

Why can't I get my Fortran programs to compile with PAPI on a Cray T3E?

Frequently Asked Questions
The Fortran header file you include has to be preprocessed before the Fortran file can use it. To have the cpp process the file before sending the file to the compiler, add the -F flag. For example:
Related Questions

How can I change the name of the default metafile from within my Fortran or C program?

Frequently asked questions
You can use the Fortran call GESC or the C call gescape. For an example of how GESC can be used, type: ncargex pgkex21 -n and look at the Fortran file pgkex21.f.
Related Questions

What Fortran-to-C translators are available?

University of Utah Mathematics Department FAQ: Compilers FAQ
The first is installed on almost all local systems (only GNU/Linux MIPS lacks it). We no longer have a license for the second. The third is available on GNU/Linux IA-32, IA-64, and AMD64, IRIX MIPS, OSF/1 Alpha, and Solaris SPARC systems.
Related Questions

How do I call Fortran routines from C?

SGI Origin 3900 FAQ
Here is a simple test case where a C program calls a Fortran routine. Note that a '_' (underscore) must be appended to the function name in C. The program must be linked with f77 so the linker can find the Fortran I/O routines.
Related Questions

How do I call C routines from Fortran?

Frequently Asked Questions
Here is a simple test case where a Fortran program calls a C routine. Note that a '_' (underscore) must be appended to the function name in C.
Related Questions

Why do we use MATLAB?

CS100M FAQ
We wish to expose you to another high level language. CS100 teaches programming, not just specific languages. So, skills you learn in Java should transfer to other languages. MATLAB offers a very powerful and elegant language for performing numerical analysis. We encourage you to explore similar packages, such as Maple, Mathematica, MathCad, and TKSolver.
Related Questions

How can I use Matlab's import feature to read signal files?

Frequently Asked Questions about PhysioNet
You can't in general, because Matlab doesn't know how to figure out which of the many supported formats is used in any given signal file, because it can't understand the most commonly used formats in any case, and because (in many cases) signal files are orders of magnitude larger than any matrix that Matlab can handle. See How can I read signal files? for a variety of ways to read signal files from Matlab without using its import feature.
Related Questions

Q9.2: Can I use MATLAB to interface to an RS232 serial port?

Frequently asked questions about MATLAB
If you are still using MATLAB 5.x, you might find something on this page: http://www.mathworks.com/matlabcentral/fileexchange/Category.jsp?type=category&id=34
Related Questions

Why is MTL written in C++ and not Fortran?

Matrix Template Library Frequently Asked Questions
MTL has two particular strengths: genericity and high performance. To implement MTL, a language must support genericity and it must offer high performance. Presently, there are various languages that offer one or the other of these, but only C++ offers both. Fortran, for instance, has the reputation of offering high performance. However, it does not support generic programming. As our performance results clearly show, C++ can provide performance on par with Fortran.
Related Questions

Q11: I'd like to write FORTRAN programs using GLUT and OpenGL. How do I use GLUT with FORTRAN?

GLUT FAQ
For instructions for building a binding library for Silicon Graphics workstations, see README.fortran If you want to use GLUT and OpenGL or Mesa on with Fortran on non-SGI systems, I recommend that you check, William Mitchell's f90gl home page. A12: GLUT uses the X Input extension to talk to these devices.
Related Questions

How do I build netCDF for use with Fortran compiler xxx and C compiler yyy on platform zzz?

NetCDF FAQ
If you have an unusual combination of compilers or platform, you may have to set a few environment variables before invoking ./configure make test make install You should also check reports we maintain of successful builds in other environments. If you have success with a combination useful to others, please send it for addition to the list.
Related Questions

How do I use the NAG Fortran Library?

Welcome to HPCVL -- Nag FAQ
The Fortran Library is used by directly linking the static or dynamic versions of the library to the program that uses it. Other libraries should be used in conjunction with it, such as socket or intl. The libraries and auxilliary files reside in /opt/nag/flsol20dal. The following lines are typical for a compilation with the NAG libraries: Linking (static): f90 -o program.exe -dalign -mt -lsocket -lnsl -lintl -xlic_lib=sunperf \ program.o /opt/nag/flsol21dcl/lib/libnag_spl.
Related Questions

Can I use your Basic compiler program to convert Basic programs into C?

FAQ
The compiler only works for a small subset of Basic and produces quite inefficient code. I do not recommend it.
Related Questions

Why is PETSc programmed in C, instead of Fortran or C++?

PETSc: Docs: FAQ
C enables us to build data structures for storing sparse matrices, solver information, etc. in ways that Fortran simply does not allow. ANSI C is a complete standard that all modern C compilers support. The language is identical on all machines. C++ is still evolving and compilers on different machines are not identical. Using C function pointers to provide data encapsulation and polymorphism allows us to get many of the advantages of C++ without using such a large and more complicated language.
Related Questions

What's the current Java's performance in comparison with Fortran, C, C++?

GreenTea Technologies, Inc.
Here is an article comparing performance of Java with C language: http://www.aceshardware.com/Spades/read.php?article_id=153. you can see, in some cases, Java's hotspot performance engine (come with JDK1.3) achieves better performance than standard C.
Related Questions

I have taken a course in C++ (or Pascal, C, or Fortran), do I still need to take Programming I?

IT Advisor FAQ
You should take the Programming I class. The main reason is that Programming I at FIU uses the Java programming language, and so does Programming II. In order to be properly prepared for Programming II, you will need to understand how to program in Java. If you have already take a class in C++, and have learned to program in Java on your own, then contact an advisor.
Related Questions

Can I use Multiflash for MATLAB with Simulink?

Multiflash Frequently Asked Questions (FAQ)
Multiflash is the solution of choice for several commercial simulation packages; see for example: 'Infochem Links' on the Infochem web site. Multiflash for MATLAB has several advantages for Simulink users: Property data is traceable to Infochem or other industry-standard data sources, for Quality Assurance. Manual entry into simulation models of approximate physical properties through look-up tables or off-line curve-fitting may be eliminated - removing the risk of errors in model data entry.
Related Questions

How can I use Matlab, Maple, and Mathematica?

Computer Documentation -- FAQ
Type passwd and follow the instructions. You will be asked to type your old password and then to type your new password twice. If you have any difficulties with this contact consult@math.uic.edu immediately.
Related Questions

How do I write graphics programs with Pacific C?

HI-TECH Software Frequently Asked Questions
I want to do some graphics programming with Pacific C, but I can't find graphics.h? Where is it? A. Pacific C is our freeware native DOS compiler, and it does not have any graphics libraries, hence there is no graphics.h. You will need to locate some suitable graphics library functions from somewhere else. There is a simple library located at http://www.cs.umb.edu/~vmay/myprograms.htm but we can't provide any help using it.Back to top error message occurred that the replacement of a file in .
Related Questions

Graphic Library: How to write programs with ECO-C?

mct.net: FAQ - Frequently Asked Questions
Example: You want to use the display TLX1741 with the ZWERG332. Your program is called "main.c" and is located in the ECO-C folder. Then you compile as follws:
Related Questions

Graphic Library: How to write programs with WinECO-C?

mct.net: FAQ - Frequently Asked Questions
The library to use depends on your target. If you have a MEGA332 for example, the appropriate library is "libgraph.a" in the folder "lib/mega332". In addition the correct low-level functions must be compiled. If you use the display TLX1741, you must add the file "tlx1741.c" in the folder "libsrc/sysshare" to your project:
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact