To produce a plot that shows the quantity of viscosity as a function of temperature in MATLAB, you can follow these steps:
linspace
function. For example, to create 100 evenly spaced points between 200 and 500, you can use:main.m39 chars2 lines
main.m31 chars2 lines
plot
function:main.m30 chars2 lines
main.m105 chars4 lines
Putting it all together, the complete MATLAB code to produce the viscosity vs. temperature plot would look like this:
main.m205 chars7 lines
Running this code will generate a plot with temperature on the x-axis and viscosity on the y-axis, illustrating the relationship between the two.
gistlibby LogSnag