Hello! My code is where I prompt the user to enter in a vector for height, diameter, and specific gravity of a cone. From there I find the volume, mass, and max/min of mass. I want to know how to output the height of the maximum mass. Example: Ht=[1 2 3 4] Diam=[1 2 3 4] Vol=[…,…,…,…] (Random numbers) Mass=[1 2 3 4] maxmass=max(Mass) Ht_maxmass=???
MATLAB: How to find component of a max value
max/min
Related Question
- Return Indices for x Smallest/Largest Values in Array
- Ans representation in decimal
- How to look for minimum value in a vector from backwards
- My function isn’t returning an array for an answer with an input array
- Efficient loop – finding min and max index of certain value
- Less than what number in the file ht could give 95%
Best Answer