Jesús Zambrano
Followers: 0 Following: 0
Programming Languages:
C, MATLAB, Arduino, VHDL
Spoken Languages:
English, Spanish
Professional Interests:
Modeling, Stateflow, Code Generation, Verification, Testing, and Certification, HDL Code Generation from Simulink
C, MATLAB, Arduino, VHDL
Spoken Languages:
English, Spanish
Professional Interests:
Modeling, Stateflow, Code Generation, Verification, Testing, and Certification, HDL Code Generation from Simulink
Feeds
已回答
How to avoid duplicate functions in generated code with embedded coder?
The get the most out of the reusability, the blocks you want to use the reusability feature should be identical copies.
How to avoid duplicate functions in generated code with embedded coder?
The get the most out of the reusability, the blocks you want to use the reusability feature should be identical copies.
10 months 前 | 0
已回答
I have probleme in simulation could you help me
I see that the Fcn block highlighted in yellow (giving the error message) is part of a closed-loop, where in order to get a resu...
I have probleme in simulation could you help me
I see that the Fcn block highlighted in yellow (giving the error message) is part of a closed-loop, where in order to get a resu...
3 years 前 | 0
已回答
In Simulink, how can I put the signal line on the lateral side of add block?
Using the Sum block, double-click on it and you can set the "List of signs" with a combination of verticla lines and pluses, for...
In Simulink, how can I put the signal line on the lateral side of add block?
Using the Sum block, double-click on it and you can set the "List of signs" with a combination of verticla lines and pluses, for...
3 years 前 | 0
已回答
How can I plot the frequency response of the equation below using MATLAB?
Hi Victor, Please try: tf1 = tf([2e9],[10 1]); tf2 = tf(1, [100e3 2e9]); mytf = tf1*tf2; bode(mytf) where each vector in...
How can I plot the frequency response of the equation below using MATLAB?
Hi Victor, Please try: tf1 = tf([2e9],[10 1]); tf2 = tf(1, [100e3 2e9]); mytf = tf1*tf2; bode(mytf) where each vector in...
3 years 前 | 0
已回答
Conversion of Simulink Model to previous version
Go to the Simulation Tab and do: Then, select the release version:
Conversion of Simulink Model to previous version
Go to the Simulation Tab and do: Then, select the release version:
3 years 前 | 0
| 已接受
已回答
How can I install MinGW for use in a new version of MATLAB?
Go to the Add-Ons explorer and type mingw64. Then, proceed with downloading and installing the compiler.
How can I install MinGW for use in a new version of MATLAB?
Go to the Add-Ons explorer and type mingw64. Then, proceed with downloading and installing the compiler.
3 years 前 | 0
已回答
How to define the variables as 'Global variables' within a Matlab Function block in Stateflow?
A way to solve this question could be by: First, in the chart properties, set the "Export chart level functions" and "Treat exp...
How to define the variables as 'Global variables' within a Matlab Function block in Stateflow?
A way to solve this question could be by: First, in the chart properties, set the "Export chart level functions" and "Treat exp...
3 years 前 | 1
已回答
Can you use SIL/PIL on a combined MATLAB/Simulink model?
Hey Joshua, You can place your MATLAB code in a MATLAB function block. This block can be part of a Simulink model, and you can ...
Can you use SIL/PIL on a combined MATLAB/Simulink model?
Hey Joshua, You can place your MATLAB code in a MATLAB function block. This block can be part of a Simulink model, and you can ...
3 years 前 | 0
已回答
Least-Squares FIR Filter Design
Hey Ori, Please find different examples of how to design and apply digital filters in the following link to the documentation ...
Least-Squares FIR Filter Design
Hey Ori, Please find different examples of how to design and apply digital filters in the following link to the documentation ...
3 years 前 | 1
已回答
I can no longer perform coverage analysis, what could be the problem?
Apart from selecting "Enable coverage analysis", it is needed to specify one out of: Entire System, Referenced Models, Subsystem...
I can no longer perform coverage analysis, what could be the problem?
Apart from selecting "Enable coverage analysis", it is needed to specify one out of: Entire System, Referenced Models, Subsystem...
3 years 前 | 0
| 已接受
已回答
fixed point number conversion
You might try the command fi For example, converting the value 1.5 to fixed-point signed, with wordlength 10 and fraction lengt...
fixed point number conversion
You might try the command fi For example, converting the value 1.5 to fixed-point signed, with wordlength 10 and fraction lengt...
3 years 前 | 0
已回答
set_param() - programmatically change param of multiple blocks of the same type (for-loop)
That´s a good solution. For any other case, you might try to first use the command find_system, to then look for the blocks you ...
set_param() - programmatically change param of multiple blocks of the same type (for-loop)
That´s a good solution. For any other case, you might try to first use the command find_system, to then look for the blocks you ...
3 years 前 | 0
| 已接受
已回答
getting error while using feedback
You need to work with model objects, they must be either continuous os discrete with identical sample times. Here, please read ...
getting error while using feedback
You need to work with model objects, they must be either continuous os discrete with identical sample times. Here, please read ...
3 years 前 | 0
已回答
How to avoid duplicate functions in generated code with embedded coder?
Apart from setting the function packaging to 'Reusable function', could you set the Function name option to 'User specified' and...
How to avoid duplicate functions in generated code with embedded coder?
Apart from setting the function packaging to 'Reusable function', could you set the Function name option to 'User specified' and...
3 years 前 | 0
已回答
integral sequre error (ISE) via Simulink
Hi Hussein, I think you should take the very final value. For example, if the simulation stops at T=10, go to the row when time...
integral sequre error (ISE) via Simulink
Hi Hussein, I think you should take the very final value. For example, if the simulation stops at T=10, go to the row when time...
3 years 前 | 0
| 已接受
已回答
Configuring the output of an S-Function
Hi Vagner, I think it is exactly you already have. Since you put x(1) and x(2) in the S-function output, and these are the unkn...
Configuring the output of an S-Function
Hi Vagner, I think it is exactly you already have. Since you put x(1) and x(2) in the S-function output, and these are the unkn...
3 years 前 | 0
| 已接受
已回答
How do I convert descriptor state-space to transfer function?
I think you can just take the A,B,C,D matrices and use ss2tf command to convert it to transfer function. Please look at this do...
How do I convert descriptor state-space to transfer function?
I think you can just take the A,B,C,D matrices and use ss2tf command to convert it to transfer function. Please look at this do...
3 years 前 | 0
已回答
How do i programmatically set parameter override sets to different test iterations for a single test case in MATLB?
About overriding parameters programmatically, you could check the content described in this link: Override Model Parameters in ...
How do i programmatically set parameter override sets to different test iterations for a single test case in MATLB?
About overriding parameters programmatically, you could check the content described in this link: Override Model Parameters in ...
3 years 前 | 0
已回答
Can i run Matlab simulink in windows command line ?
Hi Sreenath, You could start by checking this example shows how to create a test harness programmatically: Programmatically Cr...
Can i run Matlab simulink in windows command line ?
Hi Sreenath, You could start by checking this example shows how to create a test harness programmatically: Programmatically Cr...
3 years 前 | 0
已回答
how to generate 100 random numbers between 5 and -5?
Hey Rayhan, You can try with these lines of code: a = -5; b = 5; N = 100; r = a + (b-a).*rand(N,1); Hope it helps!
how to generate 100 random numbers between 5 and -5?
Hey Rayhan, You can try with these lines of code: a = -5; b = 5; N = 100; r = a + (b-a).*rand(N,1); Hope it helps!
3 years 前 | 0
已回答
How do I use LHS(Latin Hypercube Sampling)?
You could try with: lb = [-5 0]; ub = [10, 15]; x = bsxfun(@plus, lb, bsxfun(@times, X, (ub-lb)); %new sample distribution z...
How do I use LHS(Latin Hypercube Sampling)?
You could try with: lb = [-5 0]; ub = [10, 15]; x = bsxfun(@plus, lb, bsxfun(@times, X, (ub-lb)); %new sample distribution z...
3 years 前 | 1
已回答
Runge Kutta 4 ODE
Hi Valeria, I don't see any system of ODEs (ordinary differntial equations) in equations 4 to 6. For solving ODEs you can foll...
Runge Kutta 4 ODE
Hi Valeria, I don't see any system of ODEs (ordinary differntial equations) in equations 4 to 6. For solving ODEs you can foll...
3 years 前 | 0
已回答
Synchronize Two Timetables (observation and simulation)
Hey Ali, I think so too. I guess you included the folloinwg lines of code to define obs and model timetables before using synch...
Synchronize Two Timetables (observation and simulation)
Hey Ali, I think so too. I guess you included the folloinwg lines of code to define obs and model timetables before using synch...
3 years 前 | 0
| 已接受
已回答
Error in port widths or dimensions
If Output port 2 goes to Input port1, then you have a conflict due to the dimensions. Including a signal specification will not ...
Error in port widths or dimensions
If Output port 2 goes to Input port1, then you have a conflict due to the dimensions. Including a signal specification will not ...
3 years 前 | 0
| 已接受
已回答
How to programmatically pause and resume UUT Simulation in Test Sequence Block ?
Maybe you can add one or more breakpoints in different steps so to pause in the moment you prefer. Here I include documentation ...
How to programmatically pause and resume UUT Simulation in Test Sequence Block ?
Maybe you can add one or more breakpoints in different steps so to pause in the moment you prefer. Here I include documentation ...
3 years 前 | 1
已回答
How to change C and D matrices of a state-space model?
What about: sys2 = ss(A, B, sys2_C, sys2_D, 'StateName', sys1.StateName)
How to change C and D matrices of a state-space model?
What about: sys2 = ss(A, B, sys2_C, sys2_D, 'StateName', sys1.StateName)
3 years 前 | 0
| 已接受
已回答
Simulink simulation too slow
Hey Fadi, There are several reasons that can slow down your simulation. Here I include few possible causes: Speed Up Simulatio...
Simulink simulation too slow
Hey Fadi, There are several reasons that can slow down your simulation. Here I include few possible causes: Speed Up Simulatio...
3 years 前 | 0
已回答
How to control Inputs in Test Manager
Hey, The following link shows an example of how to add excel data to Inputs selection https://www.mathworks.com/help/releases/...
How to control Inputs in Test Manager
Hey, The following link shows an example of how to add excel data to Inputs selection https://www.mathworks.com/help/releases/...
4 years 前 | 0
已回答
Error using fmincon MATLAB function in simulink
Hi Ayman, Could you try the following: function [v,a] = fcn(x) myopts = optimoptions('fmincon','Algorithm','sqp'); xopt=fm...
Error using fmincon MATLAB function in simulink
Hi Ayman, Could you try the following: function [v,a] = fcn(x) myopts = optimoptions('fmincon','Algorithm','sqp'); xopt=fm...
4 years 前 | 0
| 已接受
已回答
Index exceeds the number of array elements (1)
Hi, please check if kinc indeed has at least two elements, because you are trying to get kinc(1) and kinc(2). Also, check the "1...
Index exceeds the number of array elements (1)
Hi, please check if kinc indeed has at least two elements, because you are trying to get kinc(1) and kinc(2). Also, check the "1...
4 years 前 | 0
| 已接受