I have an array (made by polyfit) which has 2 values P = polyfit(n,q,1). what i want is to use the outputted values separately i.e as P will have 2 values i want to make it into 2 sub variables x and y (gradient and intercept)
MATLAB: How to split an array into individual values
array
Best Answer