plug elements of matrices into formula
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello all,
I have a a few matrices: A, B, and C, all of the same size.
I would like to access each corresponding element to use separately as input in a specified formula:
V = exp(x(A) + y*(B) -z*(C)
and then save resulting values in a new matrix (of the same size as input matrices)
Can somebody explain how to do this please?
댓글 수: 0
답변 (1개)
KSSV
2017년 9월 28일
N = 3 ;
A = rand(N) ;
B = rand(N) ;
C = rand(N) ;
%
x = rand ; y= rand ; z = rand ;
V = exp(x*A + y*B -z*C) ;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!