MATLAB: Merge values of a vector scalarvector Hey matlab community, I want to merge the values of a vector to a single scalar. So for example i have the vector z = (1,2,3,4). The final value should be 1234. Thanks in advance Best Answer Like this?x = 1:4; % sample input arrays = num2str(x,'%d');y = str2double(s);>> yy = 1234 Related SolutionsMATLAB: Plotting 9 single vectors Hey myself,I just found out what you/I need to know:Try this:[x,y] = meshgrid(1:1:3,1:1:3)v=y*0+1u=x*0+1quiver(x,y,u,v)That should give you/me your/mine 9 vectors. I/you only have to adjust u and v by the corresponding value instead of 1 then!;) MATLAB: Hey guys, i need help with vector maniuplation v = -3:1:3 w = v w(w<0) = w(w<0)*2 Related QuestionSize of surfnorm vectorsAdd an integer x to certain values of a vector
Best Answer