MATLAB: How to calculate in a matrix matrix array If I had a matrix A=[12 3 65,2 3 6,68 15 40] I want to change second array of matrix A multiply 10 will be like A=[12 3 65,20 30 60,68 15 40] How can I do ? Thank you Best Answer A=[12 3 65 ;2 3 6 ;68 15 40] ;iwant = A ;iwant(:,2) = 10*iwant(:,2) ;Read about matrix indexing...... Related SolutionsMATLAB: Reshaping array horizontally elementwise got it!reshape(A, 10 [])' MATLAB: About interpolation of two-dimensional matrix question Try this....I think your A is not a matrix, it is a array, so error popped out.clc; clear all ;A = [12 3 65 ; 2 3 6 ;68 15 40 ;66 98 12] ;x=[19 20 21]; y=[118 119 120 121] ;xlat=12*21 ;xlon=12*21 ;zz=interp2(x,y,A,xlat,xlon,'cubic'); Related QuestionCreating a matrix that looks similar to a 10×10 timestable grid from x = [1:10] and y = [1:10]Creating combinations of 3 vectorsHow to repeat calculations and store answers
Best Answer