Fortune Telling Collection - Fortune-telling birth date - How to calculate the average value in matlab
How to calculate the average value in matlab
1. Step 1: Open matlab and enter a = [122435] in the command line window; 26 78 56], create a matrix with 2 rows and 3 columns, as shown in the following figure:
2. Step 2: Enter mean(a (:)) in the command line window, and find the average value of all elements of the A matrix, as shown in the following figure:
3. After pressing Enter in the third step, you can see what is the average value of all elements of the A matrix? 38.5000, as shown in the following figure:
4. Step 4 If you want to find the average value of each column of the matrix, enter mean(a, 1), as shown in the following figure:
5. Step 5 If you want to find the average value of each row of the matrix, enter mean(a, 2), as shown below: Done.
- Related articles
- Joke novel fortune telling _ joke novel fortune telling free reading
- A beautiful woman is a novel of the queen.
- I lost my money in the shower in my dream.
- Count 10 those stars who are "old and strong" and older than their mother-in-law.
- What year of birth is this year? What's the date of birth?
- There are too many fortune tellers.
- Where did Shi, Lao Zi, Guiguzi and Chuifu go?
- Fourteen divination divination divination divination words: cut down trees and touch birds to do things steadily, and right and wrong will naturally disappear. Marriage partnership
- A woman's face is a fortune teller. A fortune-teller woman?
- Method for making ginger cola