How to perform inverse between a page of a 3D matrix and a column vector without loops?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Kalasagarreddi Kottakota
am 11 Jan. 2023
Beantwortet: Steven Lord
am 11 Jan. 2023
The matrix H looks like 9 x 2 x 14 and matrix A1 is 9 x1. I need to perform inversion between every page of H with A using mldivide so that output looks like 2 x 1 x14 matrix. No loops.
clear all;
close all;
load H.mat
load A1.mat
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 11 Jan. 2023
Why do you insist to do this without looping? If you have been told "for loops in MATLAB are slow" that is not necessarily the truth anymore.
0 Kommentare
Weitere Antworten (1)
Kevin Holly
am 11 Jan. 2023
Bearbeitet: Kevin Holly
am 11 Jan. 2023
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!