Info

This question is closed. Reopen it to edit or answer.

I have acquired some y axis values in display in the simulink. I want to automatedly find the coresponding x value in the graph. is the any such block available for the same or any method to do so?

1 view (last 30 days)
Screenshot (26).png
  2 Comments
Priyanshu Mishra
Priyanshu Mishra on 28 Jan 2020
Hi Shantanu,
It is not clear from the question, how you plotted this. So, if you can please share your model then we will have better insight into the problem.
SHANTANU KSHIRSAGAR
SHANTANU KSHIRSAGAR on 3 Feb 2020
Sir i am not able to send you the .Slx file i have used. Is there any other way i can send it to you. I have attached image of the simulink file created by me herewith.
What i have did is :
  1. filtered the raw signal from signal builder using a filter
  2. used the min max block to find values and displayed required values(10%,75%,99%....), calculated components manualy {(75%-10%)rise time, (99%-10%)settling time...}
  3. Calculating ripple in the graph using absolute value and
What i want:
  1. To automate importing excel files to Matlab
  2. to find required components by making calculations on each pulse in the filtered signal by using Matlab
  3. to save the calculated components in another excel sheet through Matlab

Answers (1)

Priyanshu Mishra
Priyanshu Mishra on 31 Jan 2020
Hi Shantanu,
Since I do not have access to your model, what I understood from your question is that you want to find the index value of non zero y values. There is find block in simulink which will give you linear index of each non zero element.
For information you may refer to following example as well

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!