Derive values of alphabet

2 次查看(过去 30 天)
whiyan
whiyan 2021-10-28
编辑: DGM 2021-10-28
Need to save the below alphabet values, How could I build the matlab code?
a=0.25
a+b+e=0
7a+6b+c+5e+f=0
19a+13b+5c+d+9e+3f=0
25a+12b+8c+4d+7e+3f=0
16a+4b+4c+4d+2e+f=0

采纳的回答

DGM
DGM 2021-10-28
编辑:DGM 2021-10-28
For a numerical approach:
% coefficient matrix
A = [1 0 0 0 0 0;
1 1 0 0 1 0;
7 6 1 0 5 1;
19 13 5 1 9 3;
25 12 8 4 7 3;
16 4 4 4 2 1];
% sums
b = [0.25 0 0 0 0 0].';
% solve for variables
x = A\b
x = 6×1
0.2500 -2.0000 1.0000 -1.0000 1.7500 0.5000

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by