Error: Array indices must be positive integers or logical values.
1 次查看(过去 30 天)
显示 更早的评论
I have looked at past threads and cannot find the issue of my problem. The error is in the last line with description "Array indices must be positive integers or logical values"
q=10; % W/m^3
km=100; %W/Km
kw=500; %W/Km
R1=1;
R2=1.2;
N=5;
Tr=300;
dr=R1/(N+1);
M=zeros(N+N,N+N);
M(N+1,N+1)=-km/((N+1)*dr^2)-kw((N+1)*dr^2);
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!