问题描述:
>> MATLAB 中矩阵元素用变量表示的问题
G=[4,5]';
H=[1,2;1,3];
a=[2,3]';
A=G-0.5*H*a;
问题是想把这个0.5换成一个变量x,范围是0到1,看看A随变量x的变化,请问怎么换啊?
Error using ==> times Matrix
G=[4,5]';
H=[1,2;1,3];
a=[2,3]';
A=G-0.5*H*a;
问题是想把这个0.5换成一个变量x,范围是0到1,看看A随变量x的变化,请问怎么换啊?
Error using ==> times Matrix
问题解答:
我来补答展开全文阅读