create a new cell array by repeating values
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Elysi Cochin
el 15 de Feb. de 2017
Comentada: Elysi Cochin
el 15 de Feb. de 2017
i have a cell array with n columns... from this n values i want to create a new cell with "r" rows and "c" columns.... that repeat the cell values that much times i specify...
0 comentarios
Respuesta aceptada
KSSV
el 15 de Feb. de 2017
Editada: KSSV
el 15 de Feb. de 2017
doc repmat
r = cell(3,1) ;
r{1} = rand(10) ;
r{2} = rand(3,3) ;
r{3} = rand(5,4) ;
repamt(r,3,2)
5 comentarios
KSSV
el 15 de Feb. de 2017
How about this?
clc; clear all ;
r = cell(1,60) ;
for i = 1:60
r{i} = rand(25,25) ;
end
A = repmat({r},16,54) ;
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!