필터 지우기
필터 지우기

How to create vector with elements which are matrices?

조회 수: 2 (최근 30일)
Egor Domoratskiy
Egor Domoratskiy 2023년 12월 8일
답변: Torsten 2023년 12월 8일
Colleagues! I will try to explain the task in more detail so that it is clear what needs to be done and what you want to have.
It is necessary to find the Green operator through the inversion of some matrix of size NxN, from the main diagonal of which a certain value of energy is subtracted, i.e. Mathcad copes with such a thing one or two times, but I write the program in Matlab due to the limitations of Mathcad's work with RAM.
So, in Mathcad, such a thing is initialized quite easily - the first picture. But I tried to do this in Matlab, and I came across the fact that Matlab does not digest such an array entry.
Then I tried to make a three-dimensional array out of my Green operator (well, or a third-rank tensor, whichever one likes better). It turned out something similar to the truth, but, judging by the calculations, it is not correct - the second picture.
I ask for your help! I have attached Mathcad and Matlab files to this topic in ZIP-format. Thank you in advance!

답변 (1개)

Torsten
Torsten 2023년 12월 8일
A cell array might help:
M{1} = [3 5;9 12];
M{2} = [2 -9;0.6 -3.7];
M
M = 1×2 cell array
{2×2 double} {2×2 double}

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by