MATLAB: Are the plot coming out linear when they’re supposed to be curves

curveline

Please help, this is my code that is supposed to produce curves but they're all coming out as straight horizontal lines.

Best Answer

Use ./ and .* for component-wise division and multiplication.