Effacer les filtres
Effacer les filtres

for loop in simulaink as matlab function

2 vues (au cours des 30 derniers jours)
vishnuvardhan naidu tanga
vishnuvardhan naidu tanga le 11 Déc 2019
Is there any way to use this code as a matlab function in simulink?
P=zeros(0,n+1);
P(1) = P_in;
CR = (P_out/P_in)^(1/(n));
for i = 2:n
P(i) = CR*P(i-1);
P(i+1) = CR*P(i);
end

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by