How to augment a vector into another vector?

Technical Source
1 min readMar 20, 2023

--

v1 = [0 1 2 3],

v2 = [0 1 2]

the resultant

v3 =[0 0;
1 0;
2 0;
3 0;
0 1;
1 1;
2 1;
3 1;
0 2;
1 2;
2 2;
3 2]

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

v1 = [0 1 2 3], 
v2 = [0 1 2]
[a,b]=ndgrid(v1,v2)
out=[a(:) b(:)]

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet