Creating an Concatenated Array for one word
显示 更早的评论
Hi there. I am trying to create a 4 x 5400 concatenated array where each element of the array contains the same word, something like this screenshot below. Can anyone help me on how to achieve this.

回答(1 个)
Star Strider
2021-3-31
0 个投票
4 个评论
Manav Atwal
2021-3-31
Star Strider
2021-3-31
If the original was a cell array, it will produce a cell array output.
Experiment with these options:
cv = 'Driver A ';
A = repmat(cv, 3, 4) % With Character Vector
sv = "Driver A";
A = repmat(sv, 3, 4) % With String Variable
.
Manav Atwal
2021-3-31
Star Strider
2021-3-31
‘How do i get the orginal into a cat format?’
I have no idea what you are asking.
To the best of my knowledge, there is no such thing as ‘cat format’.
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

