back soft

مطالب مرتبط با «matlab function in script» در back soft | نویسنده: استخدام کار

Matlab function in Simulink - retain previous non-zero input value

Vote count: 0 I have a Matlab function block in Simulink that receives 2 inputs and processes it to generate an output. During the course of the simulation, at some time points, one of the inputs is zero. I'd like to use the most recent non-zero input to the function whenever that particular input value is zero. How can I achieve this? I tried creating a persisent variable that updates to most recent non-zero input value but that doesn't seem to work. asked 10 secs agoarun Let's block ads! بخوانید...

ادامه مطلب

برچسب‌های مرتبط

matlab function in script | matlab function input | matlab function input string | matlab function inside script | matlab function in function | matlab function input argument | matlab function in simulink | matlab function in same file | matlab function input array | matlab function inline