Using different X-axis in trapz

4 visualizaciones (últimos 30 días)
Muhammet Nuri
Muhammet Nuri el 1 de Ag. de 2022
Comentada: Muhammet Nuri el 2 de Ag. de 2022
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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Ag. de 2022
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
  1 comentario
Muhammet Nuri
Muhammet Nuri el 2 de Ag. de 2022
Sorry for the late reply. Hats off to you sir.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by