MATLAB: How to print variables in command window with message MATLAB A=[1, 3,4] I want to print size of A is length(A) and A is print(A , length(A)) Best Answer I had to make some guesses about exactly what you want output.varname = 'A';varlength = length(A);fprintf('size of %s is %d\n', varname, varlength);fprintf('%s is', varname);fprintf(' %g', [A(:); varlength]);fprintf('\n'); Related SolutionsMATLAB: Error printing double format value fprintf('%d', a)doc fprintf MATLAB: How to print : What’s Your Name fprintf('What''s your name\n') Related QuestionHow to solve this only using loopingFprintfHow to specify the paper tray I want to print to when using MATLAB on a MacHow to use fprintf to print strings and wordsHow to create an array using an existing set of numbers longer than the original array
Best Answer