i dont understand the matlab fucntion any help ?please

2 ビュー (過去 30 日間)
motaz jaraish
motaz jaraish 2022 年 8 月 19 日
コメント済み: dpb 2022 年 8 月 20 日

  1 件のコメント
dpb
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
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
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
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 ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by