필터 지우기
필터 지우기

I have mat file need to substract 24rows x 1column . Please provide solutions .

조회 수: 1 (최근 30일)
Load. N1 N2. S1. S2. 0. 2.55 8.999. -5.6363 2.9636 11.23 3.400 4.330. -7.3333. -8.999. Need to substract in N1 =3.400-2.55. Like for n rows
  댓글 수: 3
solleti prabhakarchary
solleti prabhakarchary 2022년 7월 12일
I have values of different loads and N1 values .Need to substract with row2-row1,row3-row1....like row1 was constant here.
Dyuman Joshi
Dyuman Joshi 2022년 7월 12일
Your statement is still quite unclear.
From what I have understood,
y=randi(20,4,5)
y = 4×5
9 18 2 3 11 6 6 12 18 8 18 18 19 9 10 17 1 20 13 11
for i=2:size(y,1)
z=y(i,:)-y(1,:)
end
z = 1×5
-3 -12 10 15 -3
z = 1×5
9 0 17 6 -1
z = 1×5
8 -17 18 10 0

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Gamma Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by