mult4.m
来自「求解量子力学的薛定谔方程」· M 代码 · 共 15 行
M
15 行
function f = mult4(x,y)%> The function file <mult4> multiplies two 2x2 matrices represented%> as column 4-vectors, where each matrix element is a row vector, %> of same dimension for x and y.%> Call: mult4(x,y)%> Input: x, y are 4 x N matrices,%> Output: a matrix of same dimensionf=[ x(1,:).*y(1,:) + x(2,:).*y(3,:); x(1,:).*y(2,:) + x(2,:).*y(4,:); x(3,:).*y(1,:) + x(4,:).*y(3,:); x(3,:).*y(2,:) + x(4,:).*y(4,:)]; %>%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?