Prev: penalty to fminsearch
Next: How to estimate the frequency response of a fixed-point Simulink model?
From: Sean on 10 May 2010 12:08 "Oluwa KuIse" <wespeakforex(a)yahoo.com> wrote in message <hs9a9b$pnu$1(a)fred.mathworks.com>... > Thanks for your answers, it worked. I have a related problem still in overland flow: For certain values of fluid depth e.g. h < 0.001, I want to set the ground slope, Sox, equal to the friction slope, Sfx. > Pseudocode: > %given h, Sox and Sfx all of the same size > For (i,j) = h <0.001 > Sfx(i,j) = Sox(i,j); % Replace the elements in positions (i,j) in Sfx with their > corresponding values in Sox. > end We've given you all of the tools you need to do this. >>Sfx(h<hmin) = Sox(h<hmin);
|
Pages: 1 Prev: penalty to fminsearch Next: How to estimate the frequency response of a fixed-point Simulink model? |