Really found a lot of trouble to find the solution.
But could not find how someone could solve it just using a size of 7.
good one
What matlab functions are useful for this ? (I did it with a loop)
fun one
B=[]
for i=1:length(A)
for j=1:2
B(end+1)=A(i);
end
end
@ivan lyss Could you help me How solved this problam
Please, I need your help to solve this problem, ChanXy.
function B = your_fcn_name(A)
B=repelem(A,2);
end
A=A'
r=repmat(A,1,2)'
B=r(:)'
2401 Solvers
1262 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
226 Solvers
2985 Solvers
Is this triangle right-angled?
2396 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!