How to plot different set of curves using MATLAB?

1 view (last 30 days)
Good day all, Please i have a velocity data in the form of matrices 101 x 51 that i wanted to plot against thickness (n) . I would like to write a code such that the program choose and plot the best curve from the column data. For instance four curves on one graph of velocity (u) vs boundary layer thickness (n) at different values of Prandtl number parameter and inclination angle (gamma).The aim here is to study the effects of this parameters on the velocity profile. Assume, velocity (u) is in the form (101 x 51), n = [0:0.1:10]; Pr is the parameter to be studied at fixed values of 2 and 5 and finally the angle at fixed values of 30,45,60,75 meaning that at a fixed values of Pr = 1 and Pr = 10, we should have 4 different curves for each angle making a total of 8 curves on one graph. Each curve is to have different color in the set. Thank you in advance
  1 Comment
Ahmed A. Selman
Ahmed A. Selman on 6 Apr 2013
How do the program chooses the best curves? Some condition must be specified since not Matlab nor any other programming language can (choose the best) by itself. So please provide the condition you think will provide the best values.
Plot in Matlab can be easily used for matrices, just type (plot(x,y)) where x and y are the data on the horizontal and vertical axes, resp. Or use 3-D graphic commands (surf, mesh, surfl, ..etc) as: surf(Z) where Z is a 3D array.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!