MATLAB: During the execution of matlab programe, a variable is producing output 200.1236 i want to display 200.1236012457 MATLAB after a decimal point i want 10 digits has to display without fprintf Best Answer x = 200.1236012457;format long gdisp(x) 200.1236012457Documentation reference: format (link) Related SolutionsMATLAB: 200 X 200 Matrix Note that your code does not follow the guidelines given to you: the tic and toc are supposed to be before and after the sum statement, but you have put them around the randi statement.You might end up with something like this:R = 200;C = 200;X = randi([-100,100], R, C);% sum in one statementticY = sum(X(:));toc% sum in a loopZ = 0;ticfor rr = 1:R for cc = 1:C Z = Z + X(rr,cc); endendtoc MATLAB: What type of data (200 x 200 x 200) It's an array. A 3d array to be precise, but just an array.A vector (as defined by isvector(...) )is an nx1 or 1xn arrayA matrix (as defined by ismatrix(...) ) is an nxm 2d array (so a vector is a subset of a matrix as a 1d array is not possible in Matlab).You can also specify a row or column vector explicitly with isrow(...) and iscolumn(...) Related QuestionWhat happens to this programe of Runge-Kutta Method
Best Answer