由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - Matlab problem
相关主题
MATLAB 并行计算问题my experience,Re: 我也及问一个问题
发现一个有趣的事情,关于fortran IMSL library3D FEM code
在matlab中如果快速地求矩阵的逆请教Stabilized inverse diffusion equation
optimization using matlab function fmincon请教1万个变量的线性方程组怎么解啊?
请教如何根据矩阵元素值找到矩阵的行号?[合集] ill conditioning
怎么拟合这样的曲线X86的shared-memory 机器还是不行阿? (转载)
Newton's method最后收敛速度很慢,求解释CG versus BFGS for iterative linear solvers
我也及问一个问题svd on large matrix
相关话题的讨论汇总
话题: matlab话题: values话题: do话题: loop话题: bulls
进入Computation版参与讨论
1 (共1页)
Y********x
发帖数: 322
1
I have a "for" loop, in each iteration, i want to save the
values of some variables, and in later iterations, i need to
retrieve these values for some comparison. How can I do it? I
am a novice of Matlab and you Bulls do not BS me...
l*w
发帖数: 646
2
use array
if you need the variable to be A
then define A(n)
in the do loop,
for i=1:100:1
A(i)=...
end
then pick up and A(i) you need after the do loop.

【在 Y********x 的大作中提到】
: I have a "for" loop, in each iteration, i want to save the
: values of some variables, and in later iterations, i need to
: retrieve these values for some comparison. How can I do it? I
: am a novice of Matlab and you Bulls do not BS me...

Y********x
发帖数: 322
3
actually the values to be saved are "arrays" too. Can I assign
the arrays to A(n)?

【在 l*w 的大作中提到】
: use array
: if you need the variable to be A
: then define A(n)
: in the do loop,
: for i=1:100:1
: A(i)=...
: end
: then pick up and A(i) you need after the do loop.

l*****i
发帖数: 3929
4
save them as rows or columns of a matrix, say A(:,i) or A(i,:)

【在 Y********x 的大作中提到】
: actually the values to be saved are "arrays" too. Can I assign
: the arrays to A(n)?

f********r
发帖数: 50
5
or use cells
hehe

【在 Y********x 的大作中提到】
: actually the values to be saved are "arrays" too. Can I assign
: the arrays to A(n)?

j**u
发帖数: 6059
6

您老终于出手了,呵呵。

【在 f********r 的大作中提到】
: or use cells
: hehe

1 (共1页)
进入Computation版参与讨论
相关主题
svd on large matrix请教如何根据矩阵元素值找到矩阵的行号?
如何求取最优值?怎么拟合这样的曲线
求PaperNewton's method最后收敛速度很慢,求解释
转一些我blog上一些常见的二叉树面试问题和总结 (转载)我也及问一个问题
MATLAB 并行计算问题my experience,Re: 我也及问一个问题
发现一个有趣的事情,关于fortran IMSL library3D FEM code
在matlab中如果快速地求矩阵的逆请教Stabilized inverse diffusion equation
optimization using matlab function fmincon请教1万个变量的线性方程组怎么解啊?
相关话题的讨论汇总
话题: matlab话题: values话题: do话题: loop话题: bulls