Hi guys,
I'm trying to do the same concept of what my code below does, but in a simple approach with different way.
My code in MATLAB is:
y=[1 2 3 4];
OccurancesParameter= 5;
output=repelem(y, OccurancesParameter);
So I want to do the same concept of what my code above does, but simple approach/way in MATLAB, like using for loop or any other simple way, and not using the built in function repelem().
Could anyone please help me out on this? appreciated!
1 Comment
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/725032-writing-the-built-in-matlab-function-in-simple-code-like-for-loop-etc#comment_1281362
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/725032-writing-the-built-in-matlab-function-in-simple-code-like-for-loop-etc#comment_1281362
Sign in to comment.