Matlab procession and text multiplication

Asked 1 years ago, Updated 1 years ago, 116 views

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

2022-09-20 20:16

1 Answers

c = cell(8640,1);

for i = 1:8640 c{i} = char ("wood"); end Like this


2022-09-20 20:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.