已回答
Assign fields to structure array in Simulink
You can use MATLAB Function as following. I attached example model and .mat included struct data.

4 years 前 | 0

| 已接受

已回答
How to round only two values after decimal point
You can use 'round' block and 'subtract' block.

4 years 前 | 0

已回答
Why is the data saved in a struct when 'To Workspace' block is used?
"ans" is most recent answer. ans "out" is simulation output (default setting of model configuration)

5 years 前 | 0

| 已接受

已回答
how do I compare simulink data dictionaries
Please try following script. Unzip attached file. execute the script. visdiff('dd1.sldd','dd2.sldd') For simple file differe...

5 years 前 | 1

已回答
Simulink cache file won't open
That is the correct behavior. .slxc files are Simulink cache files. These files contain build artifacts that can speed up simul...

5 years 前 | 0

| 已接受

已回答
Modifying my fprintf code.
Please execute following script. for n=9:-1:2 theta=pi./n; solution=cos(theta); fprintf('cos(pi/%d) = %7.5f\n',n...

5 years 前 | 0

已回答
Where is the declaration and definition of C code corresponding to min,max,abs blocks
For example, min block generate model.c and model.h. math.h is included in model.h

5 years 前 | 0

已回答
Can anyone help me how many color representation are there in simulink?
It may have 16,777,216. Because There are 256 color settings for each of RGB.

5 years 前 | 0

已回答
Pointer to Simulink Function
I attahced example model, hedder and souce C file. Please try to simulate there. Call C Library Functions in C Charts

5 years 前 | 0

已回答
ブロックの背景色一括変更
Yamazaki様 以下の様なプログラムは如何でしょうか? ret = find_system(bdroot(gcs),'BlockType','Goto'); % モデル内からGotoブロックをリストする for N = 1:length(...

5 years 前 | 0

| 已接受

已回答
Simulink/StateFlowにおけるバス信号への値の代入について
Atomi様 Stateflowの 場合を添付の例題モデルとして示します。(R2019bにて作成) バス信号を使うためには、先ずバスオブジェクトを定義して下さい。その定義したバス要素に代入する形でモデリング・シミュレーション出来ます。(myBus....

5 years 前 | 1

已回答
How to export a simulink project (Not single model) to older version 2019a from newer version 2019b?/
Simulink Project won't export previous version now. This is Simulink Project limitation

5 years 前 | 0

| 已接受

已回答
HDL coder mapping error
I look like you are using the ISE web pack. The web pack does not support xc6vlx240t. web pack supports only xclx75T. If you use...

5 years 前 | 0

已回答
Simulink Model stuck in running mode indefinitely
@ADITYA You can use color space convesion block. I attached simple example model. Regards, stozaki

5 years 前 | 0

已回答
How to create a buffer FIFO, filter and then save in an array values that are between an specific range of values?
I attached modified model you made. unbuffer is just for the description of the block. It is arranged to explain the difference...

5 years 前 | 0

| 已接受

已回答
Comparing and locating string values
Please try following command. ret = find(ismember(x,a)) ismember find

5 years 前 | 1

| 已接受

已回答
How to set output of MATLAB function block as fixed size?
* I attached model and Signal Object file. There are two ways. Set the dimensions in the properties of the output signal. U...

5 years 前 | 1

已回答
How can I convert douvle value to int or Integer?
If you convert from double to int32, you can use int32 function. It work casting as int32. intnum = int32(num); int32 int16 ...

5 years 前 | 0

已回答
Turn off a Signal for a few seconds and then turning it back on
I attached example model. But it is created by R2019a and backport to R2013b.

5 years 前 | 0

| 已接受

已回答
Simulink ブロックのすべてのハイライトをクリアする
sugimoto様 対象がモデル内の全ブロックと仮定します。 blk = find_system(bdroot(gcs),'type','block'); % モデル内のブロックをリストします for n = 1:length(blk) % 取得...

5 years 前 | 1

已回答
Changing text of subsystem according to textbox
I attached sample model. If you use get_param and disp function, you can use it. for example Gain value of Gain block. v = ge...

5 years 前 | 1

| 已接受

已回答
Scope not working properly (ie im not getting a straight line if i use const value for a period of time)
This problem is setting of constant block. When sample period of constant block is set 'inf' and constant block only connect to ...

5 years 前 | 2

已回答
Simulink library takes more time to open -2016B
You can customize simulink library browser. I attached example script. You can limit the ToolBoxes displayed in the library brow...

5 years 前 | 0

| 已接受

已回答
Constant input as "iteration limit" for "for loop iterator" block
I attached example model. Please try to use it.

5 years 前 | 2

| 已接受

已回答
Vector and matrix average
a=[2.4,2,3.4,4.5,5.63]; ave_a = mean(a);

5 years 前 | 0

已回答
Solver error in HDL verifier
When you generate and simulation to use the HDL coder, SolverType must set Fixed-Step. Please see following URL HDL Coder cu...

5 years 前 | 0

已回答
how to change the integrator initial conditions?
Hello, ret = find_system(bdroot(gcs),'BlockType','Integrator') for N = 1:length(ret) set_param(ret{N},'InitialCondition...

5 years 前 | 0

已回答
Simulink model calling with appDesigner
I can't answer whole of your problem. but I create simple App. It has 2 button. One is execute simulation the other is open sc...

5 years 前 | 0

已回答
How do I set up a data acquisition code in MATLAB without having the actual hardware?
If your target H/W are NI, You can use Measurement & Automation Explorer (MAX). it is emulator without H/W. And you can download...

5 years 前 | 1

| 已接受

加载更多