MATLAB: Vector addition in a single row homeworkvector addition for a constant w=2 a matrix is to be generated by incrementing it as many times and save it in another matrix as the following way out=[w+1 w+2 w+3 w+4…….] Best Answer w = 2;N = 10; % N value may be anything as the length u need..for i = 1 : N out(i)=[w+i];end Related SolutionsMATLAB: Addition c=qq+1 MATLAB: Signals addition Assuming they correspond to the same sampling rates, truncate one of them to be of the same length as the smaller one:n1 = length(x1);n2 = length(x2);% Assuming n1 < n2x2 = x2(1:n1)Or maybe you want to interpolatex2 = interp1(1:n2, x2, linspace(1, n2, n1));Or maybe you want to refer back to your other question: http://www.mathworks.com/matlabcentral/answers/36587-adding-of-signals Related QuestionHow am I supposed to define each fi(x) functions of a nonlinear least-squares problemPeak additions /array additionPeak addition/ arrary additionSbit streamArray addition
Best Answer