How to get mobility from velocity and force
이전 댓글 표시
Dear all,
I have a data of velocity (get from accelerometer) and force data (get from hammer). Now, I need to get mobility from them. I already know that mobility=velocity/force. But I don't know how code it. I just begin learning about signal processing for a week.
Thank you all in advance.
채택된 답변
추가 답변 (1개)
Image Analyst
2015년 8월 10일
Just add a dot before the slash.
mobility=velocity ./ force;
I'm assuming you know how to get your data into a variable in MATLAB. If you don't know how to do that, then look into csvread(), dlmread(), importdata(), xlsread(), textscan(), fread(), fgetl(), or functions like that.
댓글 수: 5
vu ngothanh
2015년 8월 10일
Image Analyst
2015년 8월 10일
The code looks correct, though you really should use more descriptive variable names, like I showed you. Why do you think it's not right?
vu ngothanh
2015년 8월 10일
Image Analyst
2015년 8월 10일
I can't help you. I don't know that test. Maybe you need to take the absolute value of the velocity, or maybe the what you think is the velocity is really the acceleration - I have no idea. All I know is that the syntax for dividing those two arrays, whatever they may represent, is correct. You need to dig further to find out if the arrays really represent what you think they do.
vu ngothanh
2015년 8월 11일
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



