필터 지우기
필터 지우기

Linearization of points problem

조회 수: 2 (최근 30일)
Josefina Ottitsch
Josefina Ottitsch 2019년 4월 18일
댓글: Adam Danz 2019년 4월 18일
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
Josefina Ottitsch
Josefina Ottitsch 2019년 4월 18일
thank you for editing, yes I receive the same message and do not understand what it means!
Adam Danz
Adam Danz 2019년 4월 18일
I wrote an explanation in the answer section below.
This additional information might be helpful, too:

댓글을 달려면 로그인하십시오.

채택된 답변

Adam Danz
Adam Danz 2019년 4월 18일
편집: Adam Danz 2019년 4월 18일
In this case, the error message clearly tells you what the problem is.
Error using linearize (line 132)
The first input argument in "linearize" must be a valid model name.
The next step is to look at Matlab's documentation on this function to understand what the inputs are. You can do that by either searching for it on the internet: https://www.mathworks.com/help/slcontrol/ug/linearize.html
Or by entering either of these commands into the matlab command window.
help linearize
doc linearize % <-- more detail
The first input needs to be a Simulink model.
Another possibility is that this isn't the function you need (I don't know the goal so I can't recommend anything else).

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by