필터 지우기
필터 지우기

Matrix error in a simple integral

조회 수: 1 (최근 30일)
Sa Moha
Sa Moha 2022년 6월 18일
댓글: Sa Moha 2022년 6월 18일
Hi guys
Can you please help what's wrong here?
clear all
clc
syms x y v L k
a=1/L-y/L^2;
b=y/L^2;
c=k/L-x/L^2;
d=(k-1)/L-x/L^2;
w=(1-v)/2;
A=[c^2*w+a^2,a*c*v+a*c*w;-c*d*w-a^2,-a*d*v-a*c*w,-c^2*w+a*b,c*b*w-a*c*v,c*d*w-a*b,a*d*v-c*b*w; a*c*v+a*c*w,a^2*w+c^2,-a*c*v-a*d*w,-a^2*w-c*d,c*b*v-a*c*w,a*b*w-c^2,a*d*w-c*b*v,-a*b*w+c*d; -c*d*w-a^2,-a*c*v-a*d*w,d^2*w+a^2,a*d*v+a*d*w,c*d*w-a*b,a*c*v-d*b*w,-d^2*w+a*b,d*b*w-a*d*v;-a*d*v-a*c*w,-a^2*w-c*d,a*d*v+a*d*w,a^2*w+d^2,a*c*w-d*b*v,-a*b*w+c*d,d*b*v-a*d*w,a*b*w-d^2;-c^2*w+a*b,c*b*v-a*c*w,c*d*w-a*b,a*c*w-d*b*v,c^2*w+b^2,-c*b*v-c*b*w,-c*d*w-b^2,c*b*w+d*b*v;c*b*w-a*c*v,a*b*w-c^2,a*c*v-d*b*w,-a*b*w+c*d,-c*b*v-c*b*w,b^2*w+c^2,c*b*v+d*b*w,-b^2*w-c*d;c*d*w-a*b,a*d*w-c*b*v,-d^2*w+a*b,d*b*v-a*d*w,-c*d*w-b^2,c*b*v+d*b*w,d^2*w+b^2,-d*b*v-d*b*w;a*d*v-c*b*w,-a*b*w+c*d,d*b*w-a*d*v,a*b*w-d^2,c*b*w+d*b*v,-b^2*w-c*d,-d*b*v-d*b*w,b^2*w+d^2];
X=int(A,x,0,L);
  댓글 수: 2
Dyuman Joshi
Dyuman Joshi 2022년 6월 18일
Your grouping of terms in A is incorrect to define it as a matrix.
Either you calculate the integral using int individually or define a proper matrix and integrate the whole matrix as one.
Sa Moha
Sa Moha 2022년 6월 18일

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

답변 (0개)

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by