Does anybody here know MatLab? I have a few questions
所有跟贴
·
加跟贴
·
新语丝读书论坛
送交者: Questioner 于 2010-02-14, 14:47:45:
I am reading some MatLab code, but cannot figure out something of things after googling. Here are my questions:
1. What is the result of meshgrid(1:N)?
2. What is the result of cumsum([x, y, z])
3. What is the result of 3*(1:N)
所有跟贴:
Some sites suggested .m can be converted to C, can U help? code inside
-
Questioner
(11191 bytes)
2010-02-14, 15:35:02
(414304)
是在应付作业吧。 (无内容)
-
Amsel
(0 bytes)
2010-02-14, 19:34:36
(414333)
I thought the same so I can't help more :)) (无内容)
-
通知
(0 bytes)
2010-02-14, 21:53:17
(414352)
no, newer versions Matlab don't do this anymore.
-
通知
(79 bytes)
2010-02-14, 15:45:16
(414308)
That sucks (无内容)
-
Questioner
(0 bytes)
2010-02-14, 15:48:58
(414309)
why don't u try this: m code-->Octave-->cpp ? (无内容)
-
通知
(0 bytes)
2010-02-14, 15:55:51
(414313)
m code can run on Octave? and Octave can generate cpp code?
-
Questioner
(20 bytes)
2010-02-14, 15:58:00
(414315)
这样折腾花的功夫更多,还不如自己读明白再重写。
-
Amsel
(50 bytes)
2010-02-14, 19:10:41
(414329)
no idea. M-> Octave works though I never did, but not sure Octave 2 CPP (无内容)
-
通知
(0 bytes)
2010-02-14, 16:06:02
(414316)
suggest you 2 best resources for using Matlab:
-
通知
(66 bytes)
2010-02-14, 14:58:05
(414286)
Went there, but still not sure after some long reading (无内容)
-
Questioner
(0 bytes)
2010-02-14, 15:25:57
(414298)
why don't you read from Matlab help? They have a nice Help function
-
通知
(185 bytes)
2010-02-14, 14:56:14
(414285)
here
-
Amsel
(107 bytes)
2010-02-14, 14:55:27
(414282)
U R awsome. The 1st one has value (1,2,3...N) for each row? (无内容)
-
Questioner
(0 bytes)
2010-02-14, 15:24:07
(414297)
Yes. If you are reading more MATLAB codes,
-
Amsel
(59 bytes)
2010-02-14, 15:28:12
(414299)
can run .m file on it? (无内容)
-
Questioner
(0 bytes)
2010-02-14, 15:30:30
(414302)
you don't have Matlab installed? (无内容)
-
通知
(0 bytes)
2010-02-14, 15:35:14
(414305)
No. 1st time reading the code (无内容)
-
Questioner
(0 bytes)
2010-02-14, 15:38:51
(414306)
加跟贴
笔名:
密码:
注册笔名请按这里
标题:
内容: (
BBCode使用说明
)