30.3k views
1 vote
I need help in "Matlab' with how to "Create a column vector from 15 to -25 with a step size of 5"

1 Answer

4 votes

Answer:

x=[15:-5:-25]'

Explanation:

In order to create a vector you need to use this command:

x = [j:i:k]'

This creates a regularly-spaced vector x using i as the increment between elements. j is the initial value and k is the final value. Besides you need to add the character ' at the end in order to convert the arrow vector in a column vector

I need help in "Matlab' with how to "Create a column vector from 15 to -25 with-example-1
User Botkop
by
5.7k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.