Using Matlab, generate an evenly spaced vector of values from 1 to 20, in increments of 1.?
-
-
Answer:
a: vector = [1:1:20] b: vector = [0:(pi()/100):2*pi()] (can't quite remember the syntax for pi on matlab that is from excel) c: vector = [4:((20-4)/15):20] hope this helps
George at Yahoo! Answers Visit the source
Other answers
a: vector = [1:1:20] b: vector = [0:(pi()/100):2*pi()] (can't quite remember the syntax for pi on matlab that is from excel) c: vector = [4:((20-4)/15):20] hope this helps
George
Here's how to do the first one, the others follow the same principle: vector = 1:1:20; The first number is the value for the first index of the vector; the second is the value to increment by; and the third is the final value of the vector.
Scott H
Here's how to do the first one, the others follow the same principle: vector = 1:1:20; The first number is the value for the first index of the vector; the second is the value to increment by; and the third is the final value of the vector.
Scott H
Related Q & A:
- How to draw this fractal using MATLAB?Best solution by Stack Overflow
- how to generate random isotropic vectors using R?Best solution by Stack Overflow
- How to find the derivative without using a symbolic function in Matlab?Best solution by Stack Overflow
- Is 20,000 1 a high contrast ratio?Best solution by h10010.www1.hp.com
- How can I remove a picture's watermark using Matlab's image processing toolbox?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.