Ozmandias avatar

Code in MATLAB #1

ozmandias

Published: 11 Mar 2022 › Updated: 11 Mar 2022Code in MATLAB #1

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

Leave Code in MATLAB #1 to:

Written by

Engineer

Read more #engineering posts


Best Posts From Ozmandias

We have not curated any of ozmandias's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Ozmandias