Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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 回表示 (過去 30 日間)
Abhishek Mishra
Abhishek Mishra 2020 年 10 月 21 日
閉鎖済み: John D'Errico 2020 年 10 月 21 日
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

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by