Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

If you only need the second output from a function, you can use a tilde (~) to ignore specific outputs. For example, you might only want the index containing the maximum value in a vector:density = data(:,2) [~,ivMax] = max(v2) densityMax = density(

1 vue (au cours des 30 derniers jours)
Abhishek Mishra
Abhishek Mishra le 21 Oct 2020
Clôturé : John D'Errico le 21 Oct 2020
If you only need the second output from a function, you can use a tilde (~) to ignore specific outputs.
For example, you might only want the index containing the maximum value in a vector:
density = data(:,2)
[~,ivMax] = max(v2)
densityMax = density(ivMax)
Try getting the index value of the minimum value in v2. Use this index to extract from density.
please explain

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by