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];
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!