Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须从 for 循环的输出创建一个数组。例如,如果 for 循环是:
for i=[0.01, 0.02, 0.05] exp(i) end
我应该创建一个数组,例如
[exp(0.01) exp(0.02) exp(0.03)]
我怎样才能做到这一点?谢谢。
几乎就像你一样:-)
V= [0.1 0.2 0.3] R=exp(V)
创建要为其计算函数的值向量并将其作为参数传递。