Using different X-axis in trapz
2 次查看(过去 30 天)
显示 更早的评论
I want to numerically integrate the graph i have using an axis other than y=0. is there any built in tool to do that. Thanks for any help.
0 个评论
采纳的回答
Walter Roberson
2022-8-1
No, there is no built-in tool for that .
Have you considered applying a rotation and translation ? makehgtform is convenient for creating transformation matrices
z = zeros(size(x));
[x(:), y(:), z(:), zeros(numel(x),1)] * Matrix
and take the first two columns of the output
I show z separately because this is the general form for when you have x y z coordinates, that you use them as the first three columns and the fourth needs to zeros
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!