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(:)'
Compute a dot product of two vectors x and y
750 Solvers
The sum of the numbers in the vector
426 Solvers
286 Solvers
326 Solvers
2042 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!