Feeds
질문
Array of fixed length
A user inputs a value n. I want to make an array that has n values, 1/n. If n=4, output would be [1/4 1/4 1/4 1/4] Not qui...
거의 5년 전 | 답변 수: 0 | 0
0
답변질문
For loop question help
I have two vectors. A = [ 1 2 3 4 6] and x = [5 3 2 1]. For every value in x, I want to return the corresponding index value in ...
5년 초과 전 | 답변 수: 1 | 0
1
답변질문
For loop and indexing help
I am generating a uniform random number using X=rand; I have a vector of values, say Z=[.1 .2 .3 .4 .5]. I have another vector,Y...
5년 초과 전 | 답변 수: 1 | 0
1
답변질문
Appending to an array/vector
I have a while loop that is running. Inside the while loop, I want to create a vector of values. The loop is iterating several t...
거의 6년 전 | 답변 수: 1 | 0
1
답변질문
Problem with the interp function
"Error using interp (line 68) Length of data sequence must be at least 9. You either need more data or a shorter filter (L)."...
거의 6년 전 | 답변 수: 1 | 0
1
답변질문
For loop for summation
I need to create a for loop for a series summation. The sum is from n=-500 to 500. The summation is some function of n multiplie...
대략 6년 전 | 답변 수: 1 | 0
1
답변질문
Indexing a Matrix with a for loop
I have a matrix of complex numbers, z: z = [1+j 2+j 5+j;4+3j 6+2j 1+3j], and am trying to replicate z into y using a for loop. I...
대략 6년 전 | 답변 수: 1 | 0
1
답변질문
The @ symbol in Matlab
What does f = @(n) ((1/2).^n).*(n>=0); mean? Is this the (1/2)^n function, for values of n greater than zero? I am not sure how ...
대략 6년 전 | 답변 수: 3 | 1
3
답변질문
adding a number to an array
I am trying to create two arrays - one for time, which represents all of the x values for the graph, and one for y, which repres...
대략 6년 전 | 답변 수: 0 | 0
