MATLAB: How can i specify to take the middle digits of a string random numbers like if i have 426,692,449,089, i need a variable to assume the value of 692,449, it could also be 653217, i would need the value 5321, ?? Best Answer If it is a string then index it. For exampleS = '426,692,449,089,';S(5:12) Related SolutionsMATLAB: How to retrieve last 3 digits from each entry of a matrix of order 3 x 4 solution: A = [35679, 35678, 35677, 35676; 35675, 35674, 35673, 35672; 35671, 35670, 35669, 35668];last3digits=A-round(A,-3);last3digits(last3digits<0)=last3digits(last3digits<0)+1000;disp(last3digits) MATLAB: How to calculate the area which located between curve and x-axis Try this:X = [1427.18976 1427.21024 1427.23072 1427.2512 1427.27168 1427.29216 1427.31264 1427.33312 1427.3536 1427.37408 1427.39456 1427.41504 1427.43552 1427.456];Y = [2098.083 2231.598 1888.275 1945.497 3280.65 6656.64 7667.55 7286.07 7514.94 7324.23 7095.33 6980.91 7534.02 7400.52];Z = trapz(X, Y) Related QuestionMatching digitsHow to search for substrings in a stringLeft digitsHow to cut some digits from a numberHow to get more than 49 digits of pi in a stringMedian of n*nThree-digit format
Best Answer