Info
此问题已关闭。 请重新打开它进行编辑或回答。
Request to assist:-
1 次查看(过去 30 天)
显示 更早的评论
I have matrix A=[1,0,3; 0,5,6; 7,8,9] and
I expect output:- x1 = 3; x5 = 6; x7 + x8 = 9;
without any single quote or double quote to variable.
Is there any way to get it?
0 个评论
回答(2 个)
Image Analyst
2020-5-25
Without any other guidance, like how the various x are related to the A, here is one way that will work:
function [x1,x5,x7,x8] = YourFunction()
x1 = -3;
x5 = 6;
x7 = 2; % Whatever you want.
x8 = 9 - x7;
For more help, see
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!