column in matlab to excel?

回答 (1 件)

Thorsten
Thorsten 2015 年 11 月 23 日
編集済み: Thorsten 2015 年 11 月 23 日

0 投票

Have a close look at your code. You set
raw{r+1,cols+2}=s;
before you determine the value of s in the following if s... clauses. Compare against s(r-1), s computed in your first while loop, and assign the corresponding grade to raw{r+1, cols+2}:
if s(r-1) >= 90
raw{r+1, cols+2} = 'F'
else...% always use s(r-1)
end
r = r +1;

1 件のコメント

Thorsten
Thorsten 2015 年 11 月 23 日
My fault: must be s(r).

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

質問済み:

2015 年 11 月 23 日

編集済み:

2015 年 11 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by