Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Update data from workspace each time I execute code

1 vue (au cours des 30 derniers jours)
Kinara Patel
Kinara Patel le 19 Mai 2020
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hello all, Can someone help me how can I build following code in simulink? I need to get the value of y each time from workspace. Code:
x = 0:20; %only example (can vary )
if y == 0
y = 101.125;
else
y = y;
end
Prozent = (y-(8/9).^-x);
plot(x,Prozent);
y = Prozent(length(x));

Réponses (1)

Maadhav Akula
Maadhav Akula le 2 Juil 2020

Community Treasure Hunt

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

Start Hunting!

Translated by