I have a matrix 39 77516 13 2174 0 40 50 83311 13 0 0 13 38 215646 9 0 0 40 53 234721 7 0 0 40 28 338409 13 0 0 40i replace some values usingfor i=1:5 for j=1:6 if (A(i,j)>17&&A(i,j)<=18.5) A(i,j)=0.111; end if (A(i,j)>18.5&&A(i,j)<=20.5) A(i,j)=0.112; end if (A(i,j)>20.5&&A(i,j)<=30) A(i,j)=0.113; end if (A(i,j)>30&&A(i,j)<=40.5) A(i,j)=0.114; end if (A(i,j)>40.5&&A(i,j)<=48) A(i,j)=0.115; end if (A(i,j)>48&&A(i,j)<=54.5) A(i,j)=0.116; end end endI get output as1.0e+005 * 0.0000 0.7752 0.0001 0.0217 0 0.0000 0.0000 0.8331 0.0001 0 0 0.0001 0.0000 2.1565 0.0001 0 0 0.0000 0.0000 2.3472 0.0001 0 0 0.0000 0.0000 3.3841 0.0001 0 0 0.0000I am not getting exact values which i want to replace ,please helpif i want to replace 0.111,0.112,i end uo getting only1.0e+005 *0.0001 for all values,pleasehelp
MATLAB: Error in replacing values
matrix
Related Question
- Find row in specifics value
- Fourier analysis of waveforms and clipping wave, HELP PLEASE!!!
- How to make a permanent change to a matrix using sortrows
- Select the row that contains the minimum of a column
- Hi community, I am ploting a figure and i want to center the figure in the plot
- SIGMA must be a square, symmetric, positive definite matrix
Best Answer