Hi Omer: It sounds to me like m should always equal n if we want the result to be square-shaped. Can you explain when it's okay for m ~= n?
hello Ned. if you have 5 plots 3*2 grid subplotting will look better. similarly if x = 11, 4*3 subplot will look better shape. for some instances m=n for some not. thats the tricky part of the question :)
I imagine that you could more precisely define what the "optimum" solution you are after is by saying something along the lines of "the solution that leaves the least empty plots while keeping the difference between the number of rows and columns to 1 or less"?
Alfonso you're right. The optimum word could have been elaborated like that. I appreciate your effort.
Distance walked 3D
Get the length of a given vector
Sum the Digits of a Number
Equal to their cube
Maximum value in a matrix
last n digit of a power function
Fill an array given a sum and array length values
Flip the right coin to survive!
Sum of Dividend Digits
Sum of digit range
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office