Community Profile

photo

Jonas


Aktiv seit 2019

Statistics

  • 24 Month Streak
  • Thankful Level 3
  • Knowledgeable Level 4
  • First Review
  • Revival Level 1
  • First Answer

Abzeichen anzeigen

Content Feed

Anzeigen nach

Beantwortet
split a pulse train into two outputs in simulink
Use Compare To Constant blocks on the input signal and then Logical Operator blocks. E.g.: signal > 3 AND signal < 4 => first ...

mehr als ein Jahr vor | 0

Beantwortet
Make matlab use single as standard for code generation
In the 'Configuration Parameters', under the section 'Math and Data Types', choose 'single' for the option 'Default for underspe...

mehr als ein Jahr vor | 0

Beantwortet
Is there a way to eliminate rate scheduler task from generated code when we have two different time sampling for blocks in model ?
Structure your model as an Export-Function. Each task will appear in generated code without task scheduler. The task scheduler ...

mehr als ein Jahr vor | 0

Frage


New MATLAB Answers filtering does not allow multiple selections
So apparently MATLAB Answers was updated. It now received a cleaned up frontpage which seems to push people in posting answers, ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Beantwortet
How do I create a switch statement using 1 variable rather than multiple separate ones in Stateflow?
Thank you for the clarification of your example code. The code example you show is a statemachine implemented in code. The stat...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
How to find if the Simulink model is used for code generation
System Target File will be 'ert.tlc' if the model is configured for code generation. strcmp('ert.tlc',get_param('mymodel','Syst...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Simulink Product Block Dimension Issue.
You need to set the 'Multiplication' option of your Product block to 'Matrix(*)'.

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
Simulink Split a signal
Just branch the line: You can start from the block you want the line to go to, click and drag it on the line you want the con...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
How to create connections?
On the left (in blue) you have used blocks of the Simscape Foundation Library. On the right (in black) you have used blocks of ...

mehr als ein Jahr vor | 0

Beantwortet
connecting 6 phase PMSM with IGBT(simscape)
Do you want to use the PMSM (Six-Phase) block of Simscape? It has an ABC and XYZ port. I think you should combine three outputs ...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
AMD ryzen 7 5700u or intel i7 1165?
Since Simulink is a single threaded process, it benefits from faster cores, not from more of them. The Intel is a 4-core CPU, th...

mehr als ein Jahr vor | 0

Frage


'Generated code will not preserve the expression' warnings
Warning 1 I am getting the following warning on a Simulink.Parameter object stored in my Data Dictionary: Parameter object...

mehr als ein Jahr vor | 0 Antworten | 0

0

Antworten

Beantwortet
Get continuously updated data from matlab workspace into simulink.
MATLAB Function

mehr als ein Jahr vor | 0

Beantwortet
Access and change variable in Model Workspace within the Simulink simulation
You cannot change objects in the Model Workspace during simulation. Or it's not intended for this at least. Use Data Store Memo...

mehr als ein Jahr vor | 0

Beantwortet
Simulink: Can you invert the constant block?
To Workspace block

mehr als ein Jahr vor | 0

Beantwortet
How to use a real current source?
Instead of using an ideal current source, use an ideal voltage source with a resistor in parallel.

mehr als ein Jahr vor | 0

Beantwortet
How to allow only sequences that have had the same value for 5 seconds (in Simulink)?
Using only blocks, I think this should do the trick:

mehr als ein Jahr vor | 1

Beantwortet
How to decode a UDP packet without byte unpack
You can reassemble those 8 bytes into a 64 byte double by applying a bitshift to each byte to its correct position, using a bito...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Matlab/Targetlink Commands & Documentation
TargetLink is not a MathWorks product. You should find documentation from dSPACE support.

mehr als ein Jahr vor | 0

Beantwortet
Where is the "Treat as atomic unit" option for Function-Call Subsystem?
On my installation (R2020b) the 'Treat as atomic unit' is checked and greyed out. I believe a Function-Call Subsystem is always ...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Simulation or Simulink?
I believe you want to compare performing image processing and classification using a MATLAB script or using a Simulink model. U...

mehr als ein Jahr vor | 0

Beantwortet
Online polynomial linear curve fitting in Simulink
If you have the DSP Systems Toolbox you can use the Least Squares Polynomial Fit block. Standard Simulink does not have an alte...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Resetting Integrator by output of state flow in Simulink
Simulink cannot know which action to do first, since they depend on eachother. If you take output of the Stateflow s, reset the ...

mehr als ein Jahr vor | 0

| akzeptiert

Frage


Get exact value from Scope cursor in Simulink
I am using the vertical Cursors in a Scope window to find the signal value. However, the value only displays three significant n...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to change evaluation time of a Matlab Function in Simulink
If you put a MATLAB function block in your model, it will evaluate the MATLAB function code at each sample time. (depends on you...

mehr als ein Jahr vor | 0

Beantwortet
Electrical Switch doesn't work
You are using an ideal current source set to 1 A. This means that whichever load you attach to it, it will maintain 1A. By open...

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
connection port bus for simulink
Connection Ports are different from regular signals which have a data type, can be vectorized with a mux or can be combined in a...

mehr als ein Jahr vor | 0

Beantwortet
Protect a Simulink model but keep the possibility to modify it
You will need the Simulink Coder toolbox.

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
How to load matrix variables as constant on Simulink?
Load the .mat file into the Base Workspace of MATLAB, and in Simulink use the From Workspace block to enter the variable name th...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
strcat not supported for code generation simulink
See documentation for the MATLAB Function block. There it is mentioned that: "In addition to language restrictions, the MATLAB F...

mehr als ein Jahr vor | 0

| akzeptiert

Mehr laden