Linearization of points problem
Show older comments
Hello,
I have some data dots which I would like to linearize, however my code is not working.
aMID=[1.780287,3.672423,5.370854,5.363762,7.969255,8.148480,8.374100,10.029387,10.580805,10.781898]
aVenturi=[0.015449,0.032720,3.424873,3.473750,7.594966,6.521211,9.006245,11.045405,11.462227,11.935103]
figure(2)
linsys=linearize(aMID,aVenturi)
plot(aMID,aVenturi,'Marker','o')
hold on
plot(aMID,linsys)
So as you can see, I want to linearize the dots of aVenturi, but it does not work, what am I doing wrong?
Thank you so much for the support!
3 Comments
Adam Danz
on 18 Apr 2019
Hi Josefina, when you are searching for a solution to an error, it's helpful to include the entire error message so the volunteers here can more quickly understand the problem.
When I run your code, I get the following error message.
Error using linearize (line 132)
The first input argument in "linearize" must be a valid model name.
Josefina Ottitsch
on 18 Apr 2019
Adam Danz
on 18 Apr 2019
I wrote an explanation in the answer section below.
This additional information might be helpful, too:
Accepted Answer
More Answers (0)
Categories
Find more on Linearization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!