i dont understand the matlab fucntion any help ?please
1 次查看(过去 30 天)
显示 更早的评论
1 个评论
dpb
2022-8-19
Going to have to be more explicit than that, I'm afraid?
What, specific application of any is in question?
回答(1 个)
Fangjun Jiang
2022-8-19
You need to double click that "MATLAB Function" block. It will open in an Editor. There will be MATLAB code in that function. Most likely, it won't be too fancy, just a single-input and single-output function. The input is Clock, which means the simulation time, the output is likely a curve depending on the time.
3 个评论
dpb
2022-8-20
Your mission, should you choose to accept it, is to decide what the waveform voltage is for the lightning strike versus time and write a function to produce that. While I've never looked; I'm sure there's a whole literature field on characterizing lightning strikes -- I'm sure that also has a great range of variability.
One might consider looking at/for definitions of inputs specified for Underwriter Laboratories testing of such devices; my recollection is that they have defined standards for virtually all certification tests provided so vendors can know what their DUTs will be subjected to when submitted for approval.
dpb
2022-8-20
Oh. OK, somebody (or you :) ) supplied a functional form from which to generate a pulse --
It looks like only two terms were/are used in the summation so you can just write them out directly as the two terms -- writing a subfunction for the expression would let you not have to duplicate all the code.
I don't know enough about the subject to know what MSS_SUB and MCS_SUB would be, nor about the initial stroke given the title of Table 5 being for "Subsequent" strokes -- but maybe that's the use of "subsequent" to mean two or more and the first is the initial, I don't know and there's insufficient context to know. You'd have to consult the reference to understand fully how to apply it.
So, give it a shot at translating the mathematical equations to MATLAB code -- "nothing venture, nothing gained!" and learning by doing is generally the best route to gaining proficiency over just being handed a solution.
Post your attempts and ask specific questions where get stuck...
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!