Info

此问题已关闭。 请重新打开它进行编辑或回答。

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 次查看(过去 30 天)
Screenshot (26).png
  2 个评论
Priyanshu Mishra
Priyanshu Mishra 2020-1-28
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
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

回答(1 个)

Priyanshu Mishra
Priyanshu Mishra 2020-1-31
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

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by