Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
The Sortrows and Find Functions | Learning Through Applications
Matlab From Beginner to Professional
course content

Зміст курсу

Matlab From Beginner to Professional

Matlab From Beginner to Professional

1. Basic Syntax And Coding With A Text Editor
2. Coding Foundations
3. Learning Through Applications
4. Visualizations
5. Recursion + Matrix Multiplication

bookThe Sortrows and Find Functions

Sorting data and finding specific entries is fundamental in many applications and programming. Matlab makes this easy to perform these tasks using complex criteria.

Task

  • Create your own snippets for the sort and find functions, and any other details you like throughout the entire section;
  • Rewrite your nuclear data analysis program (chapter 1) by using the find function, instead of a for loop, to identify which rows in the original data set correspond to unique plant locations.

The result will look very similar to your medical analysis program (chapter 2):

  • Only one for loop will be needed. It will iterate over all the plant locations and calculate the final results for each (this was the second for loop in the original program).
  • In each iteration of this for loop, you'll use find instead of logical indexing within the loop to identify rows and limit the data set to the location in question.

*You're encouraged to modulize and design your programs however you like!

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 5
We're sorry to hear that something went wrong. What happened?
some-alt