How can I fix Iapp?
Afficher commentaires plus anciens
dt=0.002;
N=2;
simstart=10;
simfinish=20;
period=simfinish-simstart;
Io=10;
Iapp = zeros(N,simstart/dt);
Iapp = [Iapp Io*ones(N,1+((period/dt)))];
Iapp = [Iapp zeros(N,(tmax-simfinish)/dt)]
When I set simstart=0.2 and simfinish=0.8 I get the following error: "Error using ones, size inputs must be integers." Thank you for your help!!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!