k*r
2 楼
the matlab replacement ?
i am now tired of those greedy companies' for-profit software.
i am now tired of those greedy companies' for-profit software.
P*a
3 楼
这个真的是盘子么?
【在 z****u 的大作中提到】
: http://acg.178.com/201107/104524999109.html
【在 z****u 的大作中提到】
: http://acg.178.com/201107/104524999109.html
a*s
4 楼
scilab is also pretty good.
m*g
6 楼
I will recommend python.
f*l
7 楼
这是让吃饭的时候也不忘YY么?……
i*f
8 楼
Octave is very slow compared to matlab if our code is hard to get vertorized
. It
maybe because that octave does not have a Just-In-Time compiler (don't know
if there're third party JIT for octave)
But matlab scripting language sucks. that's another reason I hate matlab (
and don't like octave)
try numPy/sciPy if you can (does not have JIT either, but there's a 3-rd
party JIT called psyco only for x86 CPU).
【在 k*****r 的大作中提到】
: the matlab replacement ?
: i am now tired of those greedy companies' for-profit software.
. It
maybe because that octave does not have a Just-In-Time compiler (don't know
if there're third party JIT for octave)
But matlab scripting language sucks. that's another reason I hate matlab (
and don't like octave)
try numPy/sciPy if you can (does not have JIT either, but there's a 3-rd
party JIT called psyco only for x86 CPU).
【在 k*****r 的大作中提到】
: the matlab replacement ?
: i am now tired of those greedy companies' for-profit software.
a*4
9 楼
这样会不会有点脏啊?
o*n
10 楼
scipy is weaker on plotting, though matlab is not that good either.
vertorized
know
【在 i*****f 的大作中提到】
: Octave is very slow compared to matlab if our code is hard to get vertorized
: . It
: maybe because that octave does not have a Just-In-Time compiler (don't know
: if there're third party JIT for octave)
: But matlab scripting language sucks. that's another reason I hate matlab (
: and don't like octave)
: try numPy/sciPy if you can (does not have JIT either, but there's a 3-rd
: party JIT called psyco only for x86 CPU).
vertorized
know
【在 i*****f 的大作中提到】
: Octave is very slow compared to matlab if our code is hard to get vertorized
: . It
: maybe because that octave does not have a Just-In-Time compiler (don't know
: if there're third party JIT for octave)
: But matlab scripting language sucks. that's another reason I hate matlab (
: and don't like octave)
: try numPy/sciPy if you can (does not have JIT either, but there's a 3-rd
: party JIT called psyco only for x86 CPU).
g*n
11 楼
穷人版人体陈~~~
b*l
12 楼
matlab language 那是相当的 decent 啊。
vertorized
know
【在 i*****f 的大作中提到】
: Octave is very slow compared to matlab if our code is hard to get vertorized
: . It
: maybe because that octave does not have a Just-In-Time compiler (don't know
: if there're third party JIT for octave)
: But matlab scripting language sucks. that's another reason I hate matlab (
: and don't like octave)
: try numPy/sciPy if you can (does not have JIT either, but there's a 3-rd
: party JIT called psyco only for x86 CPU).
vertorized
know
【在 i*****f 的大作中提到】
: Octave is very slow compared to matlab if our code is hard to get vertorized
: . It
: maybe because that octave does not have a Just-In-Time compiler (don't know
: if there're third party JIT for octave)
: But matlab scripting language sucks. that's another reason I hate matlab (
: and don't like octave)
: try numPy/sciPy if you can (does not have JIT either, but there's a 3-rd
: party JIT called psyco only for x86 CPU).
i*f
14 楼
An example:
if "j" is used to indicate complex numbers: 1+j. if you happened to use it
as an index in the same scope, then you are busted. There is even no warning
(don't know the situation now. haven't used matlab for a while)
Another example:
One can use "function" to define a subroutine. And you can choose to use
endfunction to end the definition (or choose not). And Matlab restricts you
from defining two separate functions in the same script file...
【在 b******l 的大作中提到】
: matlab language 那是相当的 decent 啊。
:
: vertorized
: know
if "j" is used to indicate complex numbers: 1+j. if you happened to use it
as an index in the same scope, then you are busted. There is even no warning
(don't know the situation now. haven't used matlab for a while)
Another example:
One can use "function" to define a subroutine. And you can choose to use
endfunction to end the definition (or choose not). And Matlab restricts you
from defining two separate functions in the same script file...
【在 b******l 的大作中提到】
: matlab language 那是相当的 decent 啊。
:
: vertorized
: know
r*y
15 楼
matlab 里不会出现这样的问题吧. 如果你不给 i 赋予别的值, i 就是 sqrt(-1).
但是你要是赋予i 别的值, 那么i 就是新赋予的值. 这个时候 就不能用 i表示
sqrt(-1)了
warning
you
【在 i*****f 的大作中提到】
: An example:
: if "j" is used to indicate complex numbers: 1+j. if you happened to use it
: as an index in the same scope, then you are busted. There is even no warning
: (don't know the situation now. haven't used matlab for a while)
: Another example:
: One can use "function" to define a subroutine. And you can choose to use
: endfunction to end the definition (or choose not). And Matlab restricts you
: from defining two separate functions in the same script file...
但是你要是赋予i 别的值, 那么i 就是新赋予的值. 这个时候 就不能用 i表示
sqrt(-1)了
warning
you
【在 i*****f 的大作中提到】
: An example:
: if "j" is used to indicate complex numbers: 1+j. if you happened to use it
: as an index in the same scope, then you are busted. There is even no warning
: (don't know the situation now. haven't used matlab for a while)
: Another example:
: One can use "function" to define a subroutine. And you can choose to use
: endfunction to end the definition (or choose not). And Matlab restricts you
: from defining two separate functions in the same script file...
i*f
18 楼
I agree. I've been using ii,jj for many years after being biten by the
crappy i,j trap.
While we SHOULD do it in a better manner, there at least shouldn't be any
problem to use just "i" or "j". That's why I think it's a bad language,
along with some other examples.
idx_
【在 b******l 的大作中提到】
: 对呀,就是这样么。
: 另外,好的习惯是用 ii, jj 来表示 index。或者,更变态的,我经常用 idx_i,idx_
: j,或者用 X.i, X.j 来表示。后者其实是很好的 matlab 编程习惯,可以避免当有多
: 个循环时,循环变量出问题。
crappy i,j trap.
While we SHOULD do it in a better manner, there at least shouldn't be any
problem to use just "i" or "j". That's why I think it's a bad language,
along with some other examples.
idx_
【在 b******l 的大作中提到】
: 对呀,就是这样么。
: 另外,好的习惯是用 ii, jj 来表示 index。或者,更变态的,我经常用 idx_i,idx_
: j,或者用 X.i, X.j 来表示。后者其实是很好的 matlab 编程习惯,可以避免当有多
: 个循环时,循环变量出问题。
b*l
19 楼
这个是 fast prototyping 用的。代价吧。
有多
【在 i*****f 的大作中提到】
: I agree. I've been using ii,jj for many years after being biten by the
: crappy i,j trap.
: While we SHOULD do it in a better manner, there at least shouldn't be any
: problem to use just "i" or "j". That's why I think it's a bad language,
: along with some other examples.
:
: idx_
有多
【在 i*****f 的大作中提到】
: I agree. I've been using ii,jj for many years after being biten by the
: crappy i,j trap.
: While we SHOULD do it in a better manner, there at least shouldn't be any
: problem to use just "i" or "j". That's why I think it's a bad language,
: along with some other examples.
:
: idx_
b*l
21 楼
同意这个是糟糕的 design。mathwork 的解释是,用 complex 这个函数:
The complex function provides a useful substitute for expressions such as
a + i*b or a + j*b
in cases when the names "i" and "j" may be used for other variables。
there'
【在 i*****f 的大作中提到】
: All main stream scripting languages (dynamically typed) seems have not
: problem like that.
: E.g., in python you'll always have 1+1j (explicit) so even you do j=1 there'
: s no such problem. I think it's just a poor design.
The complex function provides a useful substitute for expressions such as
a + i*b or a + j*b
in cases when the names "i" and "j" may be used for other variables。
there'
【在 i*****f 的大作中提到】
: All main stream scripting languages (dynamically typed) seems have not
: problem like that.
: E.g., in python you'll always have 1+1j (explicit) so even you do j=1 there'
: s no such problem. I think it's just a poor design.
r*t
22 楼
i*f
23 楼
I agree with most parts. //hand
But I have several comments to add:
Toolbox: mostly I use communication toolbox. But I don't think it worths $
100 each copy, because it's not very useful (they could make it useful, but
they don't). There's even a C++ library which is better (easier and more
convenient) to use.
JIT: I think JIT is quite necessary, since there are programs which can
hardly be vectorized.
OO: OO in Matlab is TERRIBLE.
Functions: one function per script file...
cases.
【在 r****t 的大作中提到】
: Functions are not first-class objects. You cannot call such a language
: decent.
: Let alone the terrible OO syntax in Matlab. The only thing I like about
: matlab is the toolboxes and the JIT. Either is not a necessity in most cases.
But I have several comments to add:
Toolbox: mostly I use communication toolbox. But I don't think it worths $
100 each copy, because it's not very useful (they could make it useful, but
they don't). There's even a C++ library which is better (easier and more
convenient) to use.
JIT: I think JIT is quite necessary, since there are programs which can
hardly be vectorized.
OO: OO in Matlab is TERRIBLE.
Functions: one function per script file...
cases.
【在 r****t 的大作中提到】
: Functions are not first-class objects. You cannot call such a language
: decent.
: Let alone the terrible OO syntax in Matlab. The only thing I like about
: matlab is the toolboxes and the JIT. Either is not a necessity in most cases.
相关阅读
全部包子奉献: setup freenx server能否推荐最好的web access log analysis tools ?请问ls -l权限的s是什么意思啊?如何建立vpn服务器?怎样merge两个eps figures? (转载)问个linux下database的问题。python + apache2 upload例子跑不了如何在linux中用a2ps merge 两个 eps figures?scp/ssh的建立速度很慢,怎么回事?(已解决)请问如何在server安装centos新人在linux版报道,希望大家多多提拔!先谢啦!!Virtual Machine or Cygwin?有人试过单显卡iommu(vt-d)用xen全虚拟化装windows玩3d游戏么?unity就是左边的task bar?继续唱衰CentOS,摆事实讲道理Starwood Preferred Guest 最好的酒店和里程信用卡Ubuntu 11.04 cpu freqwireless networking under ubuntu好像11.10对我的atheros的abgn网卡支持的好一点linux上面有没有轻量级的message queue? POSIX message queue不合适。