Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

What should be the coding for the problem mentioned?

1 Ansicht (letzte 30 Tage)
Priya
Priya am 21 Mai 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi,
I have an input y whose value keeps changing for different iteration and y is being fed to two parameters namely r and R. Now I'm trying to get a piece of coding doing which, when the value of y changes, values of r and R must also change. Please help me.

Antworten (1)

Image Analyst
Image Analyst am 21 Mai 2014
Something like this
for k = 1 : 10
y = rand(1); % Or however you get y to change
r(k) = Function1(y);
R(k) = Function2(y);
end
We don't know how r and R change with y so you'll have to write those functions.
  10 Kommentare
Image Analyst
Image Analyst am 22 Mai 2014
Like I said, I don't have Simulink so this is nothing I can help you with. Hopefully someone else will answer. You didn't add the Simulink product to the Products list so you might have already lost some potential answerers. I'll add it for you.
Priya
Priya am 22 Mai 2014
Thank you.

Diese Frage ist geschlossen.

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by