How to write this b in matrix form
1 回表示 (過去 30 日間)
古いコメントを表示
Can anyone help me write this b in matrix form in matlab?
0 件のコメント
回答 (1 件)
Joseph Cheng
2014 年 4 月 22 日
編集済み: Joseph Cheng
2014 年 4 月 22 日
Look for the patterns and you can build these efficiently.
n=100;
b=1:n;
b=b.^2;
b=b/(n+1)^4;
b(1)=b(1)+1;
b(end)=b(end)+6;
3 件のコメント
Joseph Cheng
2014 年 4 月 22 日
編集済み: Joseph Cheng
2014 年 4 月 22 日
well i can't do everything for you. Talk about looking at a gift horse in the mouth. just transpose what i wrote or initialize b to be the correct size.
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!