when use yalmip: Unable to perform assignment because dot indexing is not supported for variables of this type.

1 回表示 (過去 30 日間)
I use yalmip for programming problem. the code is as follows:
f=sdpvar(3,3);
delta=[1 1 0
0 0 1
0 1 0
1 0 0
0 1 1];
for a=1:5
for i=1:3
x(a,i)=delta(a,:)*f(:,i);
end
end
t_0=[7,5
9.5,6
1,1
9,6
4,3];
gamma=[2, 1];
C=[400, 300, 450, 450, 100];
for a=1:5
for i=1:2
t(a,i)=t_0(a,i)*(1+0.15*((gamma(i)*x(a,i)/C(a))^4)); %error line
end
end
but the error is 'Unable to perform assignment because dot indexing is not supported for variables of this type'. Could you please help me find out the bug?
  1 件のコメント
Tong Liu
Tong Liu 2019 年 7 月 12 日
if i set the power less than 4 for the error row, it can just work. But larger than 4 will bring error.

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

回答 (1 件)

Chidvi Modala
Chidvi Modala 2019 年 7 月 18 日
Post YALMIP questions on the YALMIP google groups forum.

カテゴリ

Help Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by