find value from matriks

조회 수: 21 (최근 30일)
Internazionale
Internazionale 2013년 2월 25일
i have matriks A with size (64,4), so the variables is part of A = [A1 A2 A3 A4] i want to process them, to find a value ei=A3-(0.5*A1) and fi = A4-(0.5*A2). so the output is 64 value of ei and 64 value of fi.

답변 (2개)

the cyclist
the cyclist 2013년 2월 25일
편집: the cyclist 2013년 2월 25일
ei = A(:,3) - 0.5*A(:,1);
fi = A(:,4) - 0.5*A(:,2);

Thorsten
Thorsten 2013년 2월 25일
A = rand(64, 4);
ei = A(:,3) - 0.5*A(:, 1);
fi = A(:,4) - 0.5*A(:, 2);

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by