Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
RECTIFY takes a set of input matrices and produces as output a set of REPMAT'ed matrices such that all matrices have the same dimensions. This is similar to NDGRID is some respects, but the inputs are not just vectors of values to expand (although it can be used that way).
For example,
a = [0 1 2 3 4 5
6 7 8 9 10 11];
b = [11 12
13 14
15 16
17 18];
[A,B] = RECTIFY(a,b);
produces:
A = [0 1 2 3 4 5
6 7 8 9 10 11
0 1 2 3 4 5
6 7 8 9 10 11];
and
B = [11 12 11 12 11 12
13 14 13 14 13 14
15 16 15 16 15 16
17 18 17 18 17 18];
This function is most useful when creating high order matrices of input combinations for vectorized functions.
Citar como
Jeff Dunne (2026). Rectify matrix sizes (https://la.mathworks.com/matlabcentral/fileexchange/12634-rectify-matrix-sizes), MATLAB Central File Exchange. Recuperado .
Información general
- Versión 1.0.0.0 (1,78 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.0.0.0 |
