Code in MATLAB #1

Hello everyone, today I'm going to show you a very simple and basic problem. For solving this problem we will be using MATLAB.

Question:
Assign a row vector b starting with the element -1 and ending with element 10. Which divides the space between -1 and 10 to five equally spaced intervals?
IMG_20220311_173438.jpg

Solution: There are many ways to solve this problem. But the easiest of way is to use MATLAB in built function i.e linspace. The solution is given below 👇

1614271670430_IMG_20210225_221726.jpg

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now