Hi,(adsbygoogle = window.adsbygoogle || []).push({});

the question is as follows.

I wish to calculate all of the different possible combinations of two vectors in regards to Pythagoras theorem. Not just an element by element operation

My code is as follows;

opposite=(0:30)

adjacent=(0:30)

hypotenuse=sqrt(x1.^2+y1.^2)

When I use this code it only gives me distances using element by element operation. How might one prevent this from occuring and consider all combinations of adjacent and opposite side lengths?

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Computing question 1st year Engineering-MATLAB

Tags:

Loading...

Similar Threads - Computing question Engineering | Date |
---|---|

Mathematica Question about updating functions | Oct 23, 2017 |

Mathematica Mathematica Computation Time | Jul 30, 2017 |

How to compute the Riemann tensor using RGTC mathematica? | Apr 25, 2017 |

Variable summation limits in Maple or similar programs | Apr 22, 2017 |

Matlab Octave integral computation help | Apr 20, 2017 |

**Physics Forums - The Fusion of Science and Community**