Redian新闻
>
help on interface for Matlab and Fortran
avatar
help on interface for Matlab and Fortran# Computation - 科学计算
n*a
1
Anyone can help me on this?
I need to use a fortran 77 subroutine in matlab. But i do not know much about
interface and mex....
so can anybody give me an example or something related
thanks
avatar
g*i
2
if u look at matlab help, u can find some very clear
examples. u'll know how to do this in 2 min

【在 n**a 的大作中提到】
: Anyone can help me on this?
: I need to use a fortran 77 subroutine in matlab. But i do not know much about
: interface and mex....
: so can anybody give me an example or something related
: thanks

avatar
i*t
3
你就给人家一个例子么
或者说,matlab help, key words?

about

【在 g***i 的大作中提到】
: if u look at matlab help, u can find some very clear
: examples. u'll know how to do this in 2 min

avatar
g*i
4
//copied from matlab
A First Example -- Passing a ScalarLet's look at a simple example of Fortran
code and its MEX-file equivalent. Here is a Fortran computational routine t
hat takes a scalar and doubles it. subroutine timestwo(y, x)
real*8 x, y
C
y = 2.0 * x
return
end
Below is the same function written in the MEX-file format. C================
==============================================
=
C timestwo.f
C Multiply the input argument by 2.
C
C This is

【在 i******t 的大作中提到】
: 你就给人家一个例子么
: 或者说,matlab help, key words?
:
: about

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。