i dont understand the matlab fucntion any help ?please

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

  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
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 日
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...


Community Treasure Hunt

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

Start Hunting!

Translated by