Hello everyone, i am confuse with interleaving task.

i want to divide a code with length (100,300) into two halves i.e. (100,150) & (100,150). How can i achieve this task on matlab.

 Respuesta aceptada

What does "a code with length" mean? Do mean "a matrix with size" instead? Interleaving means to combine, not split into halves. If you want halves of a matrix, why can't you just do normal indexing. I mean, I assume you know how to do super basic things like
leftHalf = yourMatrix(:, 1:150);
rightHalf = yourMatrix(:, 151:end);

2 comentarios

Possibly cleaner:
splitmatrices = mat2cell(yourmatrix, 100, [150 150])
Nora
Nora el 22 de Ag. de 2016
Thanks. It really helps me a lot.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Variables en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Ag. de 2016

Comentada:

el 22 de Ag. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by