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 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!