elec_bipolar_callback
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Michele
il 19 Ott 2015
Risposto: Sebastian Castro
il 20 Ott 2015
I'm looking at the simulink models elec_bipolar_npn and elec_bipolar_pnp. There's a button that graphs the curves of I_c versus V_be for different I_b values. I don't understand the code from elec_bipolar_callback.
1. Where in the matlab code does it call the simulink model? 2. Where is the number of points to plot for each curve set to 101?
0 Commenti
Risposta accettata
Sebastian Castro
il 20 Ott 2015
You can use the edit command as follows in the Command Window and you'll see the code come up in the MATLAB editor.
edit elec_bipolar_callback
To answer your questions:
1. Line 20 (in R2015b, at least) has the following code that runs the simulation.
sim(ModelName,t_sim)
2. If you go to the model's configuration parameters, at the very bottom of the "Data Import/Export" pane, you'll see the model is configured to produce outputs over a range [0:t_sim/100:t_sim] ... which always has 101 elements.
- Sebastian
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Discrete Events and Mode Charts in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!