I have a 5x1 ones matrix and I want to fill in the text 'tree'
a= ['tree'*ones(5,1)]
I want to multiply 'tree' by 'tree', so I want to make a matrix with five 'tree' vertically, but the dimension of multiplication is wrong. What should I do if I get an error?
matlab
c = cell(8640,1);
for i = 1:8640 c{i} = char ("wood"); end Like this
© 2025 OneMinuteCode. All rights reserved.