photo

Ahmed Redissi

Last seen: 3 years ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Revival Level 1
  • Knowledgeable Level 1
  • First Answer

View badges

Feeds

View by

Answered
Average values only next to each other in a matrix
You can reshape the n by 1 vector so that it is 2 by n/2 and then take the mean which will calculate the average for each column...

3 years ago | 0

Answered
Need some help on moving spheres in 3D axes!!
Hi, I worked on something similar before to create the Solar System in Matlab. First, I calculated the x, y, and z coordinates ...

3 years ago | 0

Answered
for loop isn't working and I dont Know what i am doing wrong
First, initialize the variable you are going to use to store the sum to zero. Then iterate over the values of t and increment th...

3 years ago | 0

Answered
Animate the motion plot
Here's an example that can help you create an animation: % Create the trajectory xtrajectory = linspace(-5,5); ytrajectory = ...

3 years ago | 0

Answered
online signal peak detection
If you have the Signal Processing Toolbox, try using the function "findpeaks". Here's how to use it: https://www.mathworks.com/...

3 years ago | 0

Answered
plotting 2 variables as they change with respect to one another
It's not clear why you are iterating over the values of A when you are not using them in the loop. Generaly, you shouldn't itera...

3 years ago | 0

Answered
How can i make a function that return values from a plot?
If you only have a figure and not the data, you can follow this example to extract data from the figure containing the FFT: cle...

3 years ago | 0

Answered
How to find an array in a vector or matrix?
You can use the function "ismember" to find if an array or a scalar is part of another array. Here is the documentation for it s...

3 years ago | 0

Answered
zpk function is missing
Hi, While there is no "zpk" function in the Signal Processing Toolbox, there is a method called "zpk" of the object "digitalFil...

3 years ago | 0

Answered
How can I structure a loop to calculate a range of residuals to determine optimal filter cut-off frequency?
Hi, You can structure your loop this way to iterate over the cutoff frequencies and calculate the root mean square error: fcut...

3 years ago | 0

| accepted