Feeds
已回答
What processes are included in the compilation of a simulink model? How can the compile time of a MATLAB function block be reduced?
I have a few suggestions that you could do. 1.) Use the parallel computing toolbox with a parfor loop in your MATLAB function...
What processes are included in the compilation of a simulink model? How can the compile time of a MATLAB function block be reduced?
I have a few suggestions that you could do. 1.) Use the parallel computing toolbox with a parfor loop in your MATLAB function...
8 years 前 | 0
已回答
How to creating a tune-able sine wave in simulink
This can be solved pretty easily using the Sine Wave block. If you ever want to see which blocks are supported for code generati...
How to creating a tune-able sine wave in simulink
This can be solved pretty easily using the Sine Wave block. If you ever want to see which blocks are supported for code generati...
8 years 前 | 0
| 已接受
已回答
reuse C code in simulink
Yes, you can create s functions of your legacy C code that can be used in your simulink model. To do this the easiest way is to ...
reuse C code in simulink
Yes, you can create s functions of your legacy C code that can be used in your simulink model. To do this the easiest way is to ...
9 years 前 | 0
已回答
interfacing CAM with matlab
You need to give the variable a datatype. TMR2 has not been declared with a datatype specified.
interfacing CAM with matlab
You need to give the variable a datatype. TMR2 has not been declared with a datatype specified.
9 years 前 | 0
已回答
How to remove Sfunction from memory
The clear command should accomplish what you are looking for. If you call the following: >>clear mex This will clear all m...
How to remove Sfunction from memory
The clear command should accomplish what you are looking for. If you call the following: >>clear mex This will clear all m...
9 years 前 | 1
| 已接受
已回答
Getting Simulink to parse/ignore GCC syntax
There is an option to generate code only for code generation. If you have items that need compilation for simulation purposes th...
Getting Simulink to parse/ignore GCC syntax
There is an option to generate code only for code generation. If you have items that need compilation for simulation purposes th...
9 years 前 | 0
已回答
save variables from GUI to workspace (variables not accesible )
Which ever variables you would like to be in the workspace simply save them off to the base workspace by doing myVar = 5 ...
save variables from GUI to workspace (variables not accesible )
Which ever variables you would like to be in the workspace simply save them off to the base workspace by doing myVar = 5 ...
9 years 前 | 2
已回答
How to delete a zeros in matrix?
I think this question was already asked before but this code should do it. b = a(find(a~=0))
How to delete a zeros in matrix?
I think this question was already asked before but this code should do it. b = a(find(a~=0))
9 years 前 | 0
已回答
building simulink model from command window
To programmatically change the a block parameter you can use get_param and set_param to change parameters of Simulink blocks. Th...
building simulink model from command window
To programmatically change the a block parameter you can use get_param and set_param to change parameters of Simulink blocks. Th...
9 years 前 | 1
| 已接受
已回答
Best way to protect intellectual property in a Simulink model?
If you open the model then go to File -> Export Model to -> Protected Model. This menu will give you the option to only allow si...
Best way to protect intellectual property in a Simulink model?
If you open the model then go to File -> Export Model to -> Protected Model. This menu will give you the option to only allow si...
9 years 前 | 1
| 已接受
已回答
how to create a binary to decimal/decimal to binary function file
Since bin2dec returns a string you could use the isa command to see if the value is a string or a numeric command. In the follow...
how to create a binary to decimal/decimal to binary function file
Since bin2dec returns a string you could use the isa command to see if the value is a string or a numeric command. In the follow...
9 years 前 | 0
已回答
How can I use an input to change the initial condition of an integrator block in Simulink?
If you right click on the integrator block and go to block parameters there is an option for initial condition source. Change th...
How can I use an input to change the initial condition of an integrator block in Simulink?
If you right click on the integrator block and go to block parameters there is an option for initial condition source. Change th...
9 years 前 | 1
已回答
How do I get simulink code generation to recompile each time, even if the model is unchanged?
You can force a model to rebuild every time during Simulation by going to Configuration Parameters -> Simulation Target -> Simul...
How do I get simulink code generation to recompile each time, even if the model is unchanged?
You can force a model to rebuild every time during Simulation by going to Configuration Parameters -> Simulation Target -> Simul...
9 years 前 | 1
已回答
Simulink: How to use a structure as output signal?
In Simulink structured data is represented as Simulink.Bus objects to create a Simulink Bus you can do this by typing in your wo...
Simulink: How to use a structure as output signal?
In Simulink structured data is represented as Simulink.Bus objects to create a Simulink Bus you can do this by typing in your wo...
9 years 前 | 0
| 已接受
已回答
How do you send your code to the next line while using the disp comand?
Based upon the formatting you want to do I would suggest using sprintf instead of disp with sprintf you can use format specifica...
How do you send your code to the next line while using the disp comand?
Based upon the formatting you want to do I would suggest using sprintf instead of disp with sprintf you can use format specifica...
9 years 前 | 0
已回答
Share variables between two popup menu? please help.
Without knowing your code structure it is hard to give you the best answer possible. But an option that would work could be to u...
Share variables between two popup menu? please help.
Without knowing your code structure it is hard to give you the best answer possible. But an option that would work could be to u...
9 years 前 | 0
已回答
function prodby2 with for loop that will give you product of odd integers
The following function should produce what you are looking for function output = prodby2(n) if n>0 output = 1;...
function prodby2 with for loop that will give you product of odd integers
The following function should produce what you are looking for function output = prodby2(n) if n>0 output = 1;...
9 years 前 | 0
已回答
What do brackets mean in this expression, y(Z)?
In this case Z is being used to reference the y array. Since Z is also an array, for each value of Z the y array will be referen...
What do brackets mean in this expression, y(Z)?
In this case Z is being used to reference the y array. Since Z is also an array, for each value of Z the y array will be referen...
9 years 前 | 1
| 已接受
已回答
Sil - mil compare for simulink model
Yes, it is a common workflow in Simulink to compare simulation runs in MIL against a SIL run. To accomplish this one of the best...
Sil - mil compare for simulink model
Yes, it is a common workflow in Simulink to compare simulation runs in MIL against a SIL run. To accomplish this one of the best...
9 years 前 | 1
已回答
How to provide absolute path of include directories in code generation?
It is possible to include files using a relative or absolute paths. The syntax for relative paths is shown in the following link...
How to provide absolute path of include directories in code generation?
It is possible to include files using a relative or absolute paths. The syntax for relative paths is shown in the following link...
9 years 前 | 0
| 已接受
已回答
How to delete an repeated values in this case?
Hi Arul, Does the command unique([allR11; allR21]) get you the result you are looking for? The unique command removes repe...
How to delete an repeated values in this case?
Hi Arul, Does the command unique([allR11; allR21]) get you the result you are looking for? The unique command removes repe...
9 years 前 | 0