Community Profile

photo

Emma


Last seen: mer än 3 år ago Active since 2019

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


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...

mer än 3 år ago | 0 answers | 0

0

answers

Question


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 ...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


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...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


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...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


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)."...

mer än 4 år ago | 1 answer | 0

1

answer

Question


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...

mer än 4 år ago | 1 answer | 0

1

answer

Question


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...

mer än 4 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 4 år ago | 3 answers | 1

3

answers

Question


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...

mer än 4 år ago | 0 answers | 0

0

answers