MATLAB: How do you create the number as mentioned below homeworkpositive integersrow If we write all positive integers in a row (in our decimal system) we get 123456789101112131415161718192021222324252627282930 Write a function that returns the n-th digit of this gigantic number. Best Answer Here it ism=1:30;n=12;s=regexprep(num2str(m),' ','')s(n) Related SolutionsMATLAB: Counting the number of digits One way:numel(num2str(A)) MATLAB: I have a question about checking if two integers have matching digits in the right area Akhileven easier1.your datan = 1234;x = 6243;2.single linesum(~(double(num2str(n))-double(num2str(x)))) = 1if you find this answer useful would you please be so kind to mark my answer as Accepted Answer?To any other reader, please if you find this answer of any help solving your question,please click on the thumbs-up vote link,thanks in advanceJohn BG<mailto:jgb2012@sky.com jgb2012@sky.com> Related QuestionHow to add one digit to another digitsHow to generate synthesizable vhdl from simulink blockTrying to solve the parameters for an equationEvaluate numerical Integral by generating function
Best Answer