creating tables from matrices

Hi, I'm trying to create multiple matrices from one main matrix using a for loop, but I'm getting an error message, and I think it has to do with using 'm' and 'p' as numbers in my matrix. Here is the code. Please help!
Thanks
for i=400
n=0;
m=1+n;
p=20+n;
table_increments_12_GPX_ratio=table_12_GPX_ratio_3_14_12(m:p,3);
n=n+1;
end

2 件のコメント

the cyclist
the cyclist 2012 年 3 月 15 日
Telling us the error message would certainly help in diagnosing the problem.
Jan
Jan 2012 年 3 月 15 日
The loop body does not depend on the loop counter i. n is set to 0 in each iteration and increased by 1 at the end, but reset to 0 in the next iteration. This is most likely not wanted.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2012 年 3 月 15 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by