MATLAB: How to create this matrix without hardcoding the values humorMATLABMATLAB and Simulink Student Suitematrixmatrix manipulation 13 -1 5 -22 10 -87 Best Answer Here is one way.r = [ 1.5355 + 0.0000i -1.0914 + 1.0781i -1.0914 - 1.0781i 0.3621 + 1.3117i 0.3621 - 1.3117i]'; p = reshape(round(13*poly(r)),[3 2])'; Related SolutionsMATLAB: Creating a repeated matrix 2 Try this ktotal = repmat( transpose( h([19:18:19+4*18]) ), [3,1] ); ktotal = ktotal(:);I use "transpose" instead of the blip, "'", because the latter is too easy to miss. MATLAB: Where did the “Error handling” menus go in 2018a The option is not gone: it was moved to the arrowhead underneath the run button. I had to search for it as well. (and they won't remove the dbstop function any time soon, so you'll always be able to hard-code it) Related QuestionHow to accept an answer in a commentIs there a faster way to concantenate this matrix
Best Answer