It shows error for the following code..How to rectify it?

1 回表示 (過去 30 日間)
PLACEIUS NISHIGA G
PLACEIUS NISHIGA G 2018 年 1 月 3 日
コメント済み: Birdman 2018 年 1 月 3 日
k=rand(192,1)
syms k1 t
for i=1:4
k1=k((48*i),((48*i)-47))
a1 = symsum(k1*(2^(t-(48*i)+47)),t,((48*i)-47),(48*i));
a=a1/(2^48)
end

採用された回答

Birdman
Birdman 2018 年 1 月 3 日
You consistently try to reach columns other than 1 for k while i is not equal to 1, which is invalid.
k=rand(192,1);
syms k1 t
for i=1:4
k1=k(48*i,1)
a1 = symsum(k1*(2^(t-(48*i)+47)),t,((48*i)-47),(48*i));
a=a1/(2^48)
end
  2 件のコメント
PLACEIUS NISHIGA G
PLACEIUS NISHIGA G 2018 年 1 月 3 日
Kindly send the code for this...
Birdman
Birdman 2018 年 1 月 3 日
Try something, even if it does not work and then I can help. Furthermore, try something and open it as a new question in forum. Your chance for getting an answer will be higher.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by