Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Two matrices combination problem

1 Ansicht (letzte 30 Tage)
Shican Liu
Shican Liu am 30 Jun. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi, I was wondering how to combine the following two matrices like this?and what is it is two big matrices?

Antworten (1)

José-Luis
José-Luis am 30 Jun. 2016
A = ones(2);
B = reshape(1:9,3,3)';
C = zeros(size(A,1) + size(B,1));
C(1:2:end,1:2:end) = B;
C(2:2:end,2:2:end) = A;

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by