# Jonas

Followers: 0 Following: 0

**Statistics**

RANK**196**

of 294 384

REPUTATION**550**

CONTRIBUTIONS

**27** Questions

**249** Answers

ANSWER ACCEPTANCE **
66.67%
**

VOTES RECEIVED**96**

RANK

of 20 108

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 151 578

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Feeds**

I am not able to add Electrical blocks from Simulink Simscape

You do not have an active license for Simscape Electrical. The 'ver' command does NOT give you an extract of all toolboxes for ...

ungefär ett år ago | 0

C function calls and multiple calls from simulink

I do not deeply understand the issue, but I would like to propose the following. Create a Simulink Function block in your model ...

mer än ett år ago | 0

Cannot override parameters in Simulink model configuration reference

You can only adapt the Configuration Parameters object, not the Configuration Reference object. You need to adapt the Configurat...

mer än ett år ago | 0

Using discrete integrator block with embedded coder

I also use 'my own' integrator blocks or implementations with Embedded Coder. I work in an Export-Function model where it gener...

mer än ett år ago | 0

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 ...

nästan 3 år ago | 0

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...

nästan 3 år ago | 0

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 ...

nästan 3 år ago | 0

Question

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, ...

nästan 3 år ago | 1 answer | 0

### 1

answerHow 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...

nästan 3 år ago | 0

| accepted

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...

nästan 3 år ago | 0

| accepted

Simulink Product Block Dimension Issue.

You need to set the 'Multiplication' option of your Product block to 'Matrix(*)'.

nästan 3 år ago | 1

| accepted

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...

nästan 3 år ago | 0

| accepted

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 ...

nästan 3 år ago | 0

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 ...

ungefär 3 år ago | 0

| accepted

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...

ungefär 3 år ago | 0

Question

'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...

ungefär 3 år ago | 0 answers | 0

### 0

answersGet continuously updated data from matlab workspace into simulink.

MATLAB Function

ungefär 3 år ago | 0

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...

ungefär 3 år ago | 0

How to use a real current source?

Instead of using an ideal current source, use an ideal voltage source with a resistor in parallel.

ungefär 3 år ago | 0

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:

ungefär 3 år ago | 1

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...

ungefär 3 år ago | 0

| accepted

Matlab/Targetlink Commands & Documentation

TargetLink is not a MathWorks product. You should find documentation from dSPACE support.

ungefär 3 år ago | 0

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 ...

ungefär 3 år ago | 0

| accepted

Simulation or Simulink?

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

ungefär 3 år ago | 0

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...

ungefär 3 år ago | 0

| accepted

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 ...

ungefär 3 år ago | 0

| accepted

Question

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...

ungefär 3 år ago | 1 answer | 2

### 1

answerHow 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...

ungefär 3 år ago | 0