回答済み

My simulink model seems to not receiving proper variables from workspace or not returning proper value to workspace.

I am trying to find the document link but could't. I thought it was in "doc sim". The problem could be explained by the way sim...

My simulink model seems to not receiving proper variables from workspace or not returning proper value to workspace.

I am trying to find the document link but could't. I thought it was in "doc sim". The problem could be explained by the way sim...

2ヶ月 前 | 0

| 採用済み

回答済み

Simulink library missing from browser

Run these two lines in Command Window. What did you get? ver simulink open simulink.slx

Simulink library missing from browser

Run these two lines in Command Window. What did you get? ver simulink open simulink.slx

2ヶ月 前 | 1

| 採用済み

回答済み

How to create/access and update global variables in Simulink using Data Store Memory block

Follow the example here. https://www.mathworks.com/help/releases/R2020b/simulink/ug/using-global-data-with-the-matlab-function-...

How to create/access and update global variables in Simulink using Data Store Memory block

Follow the example here. https://www.mathworks.com/help/releases/R2020b/simulink/ug/using-global-data-with-the-matlab-function-...

2ヶ月 前 | 0

| 採用済み

回答済み

Programmatically make library targetlink compliant

I used to have it. I believe the command is tl_prepare_system(). See the document in your TargetLink installation.

Programmatically make library targetlink compliant

I used to have it. I believe the command is tl_prepare_system(). See the document in your TargetLink installation.

2ヶ月 前 | 0

回答済み

PAUSING on function call - matlab

The call of another function might be dependent on a particular condition inside this function. So it is not ideal or practical ...

PAUSING on function call - matlab

The call of another function might be dependent on a particular condition inside this function. So it is not ideal or practical ...

2ヶ月 前 | 0

回答済み

How to draw only a part of a known curve?

x=1:0.1:10; y=sin(x); index=and(x>3, x<6); plot(x(index),y(index))

How to draw only a part of a known curve?

x=1:0.1:10; y=sin(x); index=and(x>3, x<6); plot(x(index),y(index))

2ヶ月 前 | 0

回答済み

Simulink signal sequence from Matrix with feedback input

Have a logic to determine if the output value meets a target value (within threshold or steady state for a period of time), outp...

Simulink signal sequence from Matrix with feedback input

Have a logic to determine if the output value meets a target value (within threshold or steady state for a period of time), outp...

2ヶ月 前 | 0

| 採用済み

回答済み

fopen just works inside of a loop

Whatever data you need from the text file, you could read it once, store it in a variable and use it in the loop. You wouldn't d...

fopen just works inside of a loop

Whatever data you need from the text file, you could read it once, store it in a variable and use it in the loop. You wouldn't d...

2ヶ月 前 | 0

回答済み

Simulink function to detect Step time

Use the rising edge of the step signal to trigger a triggered subsystem, which contains a Clock block. When it is triggered, it ...

Simulink function to detect Step time

Use the rising edge of the step signal to trigger a triggered subsystem, which contains a Clock block. When it is triggered, it ...

2ヶ月 前 | 1

| 採用済み

回答済み

Matlab Function, switch case Problem

This is a floating-point data equal or non-equal comparision problem. Do this to get an idea. >> 1-1/3==2/3 ans = logical ...

Matlab Function, switch case Problem

This is a floating-point data equal or non-equal comparision problem. Do this to get an idea. >> 1-1/3==2/3 ans = logical ...

2ヶ月 前 | 1

| 採用済み

回答済み

Activation Date and the Validation Date

I used to have this type of license. Apparently, Mathworks periodically "validate" the license, just to make sure everyone is ho...

Activation Date and the Validation Date

I used to have this type of license. Apparently, Mathworks periodically "validate" the license, just to make sure everyone is ho...

2ヶ月 前 | 0

回答済み

How does one make clickable links to execute MATLAB commands from Simulink?

Run 'sl_subsys_semantics' in Command window to open the example model. Any block can be double clicked to open another model. Ri...

How does one make clickable links to execute MATLAB commands from Simulink?

Run 'sl_subsys_semantics' in Command window to open the example model. Any block can be double clicked to open another model. Ri...

2ヶ月 前 | 0

回答済み

Is there way to configure AUTOSAR components programmatically?

AUTOSAR Programmatic Interfaces

Is there way to configure AUTOSAR components programmatically?

AUTOSAR Programmatic Interfaces

3ヶ月 前 | 0

回答済み

size mismatch in matlab function block

[1 2]*[2 2; 2 2] is correct. [1 2].*[2 2; 2 2] is wrong (without implicit expansion)

size mismatch in matlab function block

[1 2]*[2 2; 2 2] is correct. [1 2].*[2 2; 2 2] is wrong (without implicit expansion)

3ヶ月 前 | 0

| 採用済み

回答済み

Data store memory storage class

Create a Simulink.Signal object in the workspace and you can use DataStore Read/Write block anywhere in the model. You can speif...

Data store memory storage class

Create a Simulink.Signal object in the workspace and you can use DataStore Read/Write block anywhere in the model. You can speif...

3ヶ月 前 | 0

| 採用済み

回答済み

Track Simulink slx Files

Simulink .slx file IS binary format so you really don't have a choice. Previous .mdl file is textual but it is not wise to rely ...

Track Simulink slx Files

Simulink .slx file IS binary format so you really don't have a choice. Previous .mdl file is textual but it is not wise to rely ...

3ヶ月 前 | 0

回答済み

How to save the time of the simulink simulation on matlab?

Use the Clock block in your Simulink model. It outputs the simulation time. Do whatever you want.

How to save the time of the simulink simulation on matlab?

Use the Clock block in your Simulink model. It outputs the simulation time. Do whatever you want.

3ヶ月 前 | 0

回答済み

Delete parts of plotted figures?

use patch() or fill()? This one does part of it. patch(xp,yp,'white')

Delete parts of plotted figures?

use patch() or fill()? This one does part of it. patch(xp,yp,'white')

3ヶ月 前 | 0

回答済み

Programming Problem on code

t1 doesn't contain t=0.2 and t=0.6. Not sure if it is correct or there is a typo. You can do repmat(y,1,10) or as many times as...

Programming Problem on code

t1 doesn't contain t=0.2 and t=0.6. Not sure if it is correct or there is a typo. You can do repmat(y,1,10) or as many times as...

3ヶ月 前 | 0

回答済み

Matrix input/output to a Matlab function block in simulink

Use a Constant block, specify the value as the variable in the base workspace, then you will be able to use it, no matter what i...

Matrix input/output to a Matlab function block in simulink

Use a Constant block, specify the value as the variable in the base workspace, then you will be able to use it, no matter what i...

3ヶ月 前 | 0

回答済み

How to make input values go into a matrix set?

InputStr= input(' Enter coordinate point location (x,y)','s'); Command Window: >> 2 , 4 PointA=str2num(InputStr)

How to make input values go into a matrix set?

InputStr= input(' Enter coordinate point location (x,y)','s'); Command Window: >> 2 , 4 PointA=str2num(InputStr)

3ヶ月 前 | 1

回答済み

i dont know what is this answer

The value is too big to show "real number" >> a=1000 a = 1000 >> format ShortEng >> a a = 1.0000e+003

i dont know what is this answer

The value is too big to show "real number" >> a=1000 a = 1000 >> format ShortEng >> a a = 1.0000e+003

3ヶ月 前 | 0

| 採用済み

回答済み

How to correctly set instance parameters of model reference?

In the referenced model, you need to create workspace variables, set 'ParameterArgumentNames' first as described in the document...

How to correctly set instance parameters of model reference?

In the referenced model, you need to create workspace variables, set 'ParameterArgumentNames' first as described in the document...

3ヶ月 前 | 1

回答済み

How to extract matrix with different starting index for each row?

%% Orig=transpose(reshape(1:20,5,[])) StartPos=[2;1;3;2]; Wid=3; row=repmat((1:size(Orig,1))',1,Wid); col=StartPos+(0:Wid...

How to extract matrix with different starting index for each row?

%% Orig=transpose(reshape(1:20,5,[])) StartPos=[2;1;3;2]; Wid=3; row=repmat((1:size(Orig,1))',1,Wid); col=StartPos+(0:Wid...

3ヶ月 前 | 1

| 採用済み

回答済み

Error while running Cyclomatic complexity check

Press Ctrl+D to update the mode, or better, run a simulation first to make sure your model has no errors first.

Error while running Cyclomatic complexity check

Press Ctrl+D to update the mode, or better, run a simulation first to make sure your model has no errors first.

3ヶ月 前 | 0