C*S
2 楼
It depends what fortran you are using.
do xi=-100,100,2
x(i)=xi
end do
in Fortran90 or Fortran95, you may find something easier.
like
INTEGER D(3)
D = (/1:5:2/) ! Triplet form
D = (/(I, I=1, 5, 2)/) ! Implied-do loop form
check you fortran help file, coz this could also be version dependable.
Different companis have some specific function or syntax on this.
【在 g******s 的大作中提到】
: matlab中为x=-100:2:100;请问用fortran该怎么写?先谢了!BOW!
do xi=-100,100,2
x(i)=xi
end do
in Fortran90 or Fortran95, you may find something easier.
like
INTEGER D(3)
D = (/1:5:2/) ! Triplet form
D = (/(I, I=1, 5, 2)/) ! Implied-do loop form
check you fortran help file, coz this could also be version dependable.
Different companis have some specific function or syntax on this.
【在 g******s 的大作中提到】
: matlab中为x=-100:2:100;请问用fortran该怎么写?先谢了!BOW!
g*s
3 楼
thanks a lot! I am using Unix system. Matlab is too slow for me and I am
changing my matlab codes to Fortran.
Does Unix have Fortran90 or 95 compiler? How can I know if Unix have the
compiler or not? I have to do matrix adding, comlex, fourier tranform etc, any
good book recommend?
Thanks a lot!
【在 C***S 的大作中提到】
: It depends what fortran you are using.
: do xi=-100,100,2
: x(i)=xi
: end do
: in Fortran90 or Fortran95, you may find something easier.
: like
: INTEGER D(3)
: D = (/1:5:2/) ! Triplet form
: D = (/(I, I=1, 5, 2)/) ! Implied-do loop form
: check you fortran help file, coz this could also be version dependable.
changing my matlab codes to Fortran.
Does Unix have Fortran90 or 95 compiler? How can I know if Unix have the
compiler or not? I have to do matrix adding, comlex, fourier tranform etc, any
good book recommend?
Thanks a lot!
【在 C***S 的大作中提到】
: It depends what fortran you are using.
: do xi=-100,100,2
: x(i)=xi
: end do
: in Fortran90 or Fortran95, you may find something easier.
: like
: INTEGER D(3)
: D = (/1:5:2/) ! Triplet form
: D = (/(I, I=1, 5, 2)/) ! Implied-do loop form
: check you fortran help file, coz this could also be version dependable.
C*S
4 楼
if you need to do FT, you better choose matlab. I do not know wether you can
find the library for FT under Fortran.
Also, since you are dealing matrix, matlab is a good choice.
If not too many loops, and you vectorized your program of matlab, it should
not be very slow.
Unix will have gcc, and mostly support fortran77.
You can check the help for detail, like man gcc
any
【在 g******s 的大作中提到】
: thanks a lot! I am using Unix system. Matlab is too slow for me and I am
: changing my matlab codes to Fortran.
: Does Unix have Fortran90 or 95 compiler? How can I know if Unix have the
: compiler or not? I have to do matrix adding, comlex, fourier tranform etc, any
: good book recommend?
: Thanks a lot!
find the library for FT under Fortran.
Also, since you are dealing matrix, matlab is a good choice.
If not too many loops, and you vectorized your program of matlab, it should
not be very slow.
Unix will have gcc, and mostly support fortran77.
You can check the help for detail, like man gcc
any
【在 g******s 的大作中提到】
: thanks a lot! I am using Unix system. Matlab is too slow for me and I am
: changing my matlab codes to Fortran.
: Does Unix have Fortran90 or 95 compiler? How can I know if Unix have the
: compiler or not? I have to do matrix adding, comlex, fourier tranform etc, any
: good book recommend?
: Thanks a lot!
相关阅读
选排名20的学校, 还是排名200的???matlab 能不能解符号矩阵方程? (转载)part time job opportunity for computer science/engineering student请教一个网络的问题请问matlab如何创建结构体符号变量啊?问一个matlab的画图问题(大包子酬谢)100旧伪币紧急悬赏,同祝圣诞快乐!matlab + vim 有什么好的解决方案么?one questionsneural network有啥经典教材?请问matlab plot如何动态更新 how to rip a dvd祝大家节日快乐!请教大家在tecplot中定义曲线弧长的公式plume identification algorithm 请教:如何用matlab数值求解markov chain? 谢谢!如何在双轴的Maltab图里添加曲线啊。帮忙解决一个数学问题(解方程)哪位高手 熟 通过Matlab 从 MySQL获取数据请教matlab安装