MATLAB ONRAMP SECTION 7 : further practice help
Show older comments
Hello veryone. I just began with MATLAB Onramp course two days back and now i am stuck at a question of further practice area. I am posting a screenshot of the same. Please reply. It would be a great help. :)

1 Comment
Muskaan Vashishtha
on 8 May 2020
Answers (1)
Cris LaPierre
on 8 May 2020
0 votes
Modify the code that is shown to use the min function instead of max.
3 Comments
Muskaan Vashishtha
on 8 May 2020
Cris LaPierre
on 8 May 2020
Yes, replace max with min. As for what it is doing, that is explained in Task 3.
Doug McFadyen
on 29 Jan 2021
I think the middle line should be:
[~,ivMax] = max(density) %not v2
v2 was set previous as: v2 = data(:,4);
which is column 4 of data, not from column 2 (which is density)
If the original example is run, densityMax will be 3 instead of 6.11 (because it's indexing v2 instead of density, which come from different columns of data).
Categories
Find more on Language Fundamentals in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!