Info
此问题已关闭。 请重新打开它进行编辑或回答。
please help
1 次查看(过去 30 天)
显示 更早的评论
how can I extract a sample value from a signal in simulink? for example the last sample of a sine function block. can it be done using selector block?
0 个评论
回答(1 个)
Kaustubha Govind
2012-3-30
If the signal is a vector, then yes, you can use the Select block to pick any element of that vector.
3 个评论
Kaustubha Govind
2012-3-30
saima: Like I said, your signal needs to be a vector to be able to use a Selector block. It's acts as if you are indexing into it. For example:
a = [1 2 3];
b = a(3); %This is the type of operation that Selector does
It looks like what you trying to do is get just the sample at t=FinalSimulationTime. Is that correct? Could you explain what you plan to do with this value - will it be used in MATLAB or somewhere else in the model?
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!