已回答
How to add strings and add spaces
There are various ways. The following is an example. L = "I"; M = "Dislike"; N = "Eggs"; V = sprintf("%s %s %s",L,M,N) Pl...

5 years 前 | 0

已回答
I want to convert a string to .m file
Please try following script. (attached .m file) y="x=sin(pi)"; eval (y) eval execute MATLAB expression in text. Regards, st...

5 years 前 | 0

| 已接受

已回答
How to use from workspace block
Since R2015b, Simulink supports the From Spreadsheet block. From Spreadsheet can read Excel files directly and output signals t...

5 years 前 | 0

| 已接受

已回答
export from matlab to excel
You can use writematrix or xlswrite. Please see following URL. R2019a or later : writematrix example code M = magic(5) wr...

5 years 前 | 0

已回答
From File in Simulink doesn't support complex format ?
You can use From File block treated complex numbers. But the data format must be timeserise. Pleae see the documentation for de...

5 years 前 | 1

| 已接受

已回答
If ブロックの条件切り替え時の値について
問題は解決されましたでしょうか? 添付のモデルにて、 時刻5.0[s]のとき : flag = 1, simout = 0 時刻5.1[s]のとき : flag = 0, simout = 52 となります。 条件付き実行サブシステムの出力をMe...

5 years 前 | 0

已回答
subsystemとWordやExcelのファイルをリンクして開く方法
こんにちは。 方法は幾つか考えられますが2つ紹介致します。 1つ目はSimulink Requirementsという製品をご利用頂くことです。 この製品にはご所望の機能だけでなく、リンクは双方向に設定することが出来るため、ドキュメント類からハイパーリ...

5 years 前 | 0

已回答
how to imshow(image,[]) in simulink
Hello vishnu, I attached model made by R2016a. Please edit some parameters as needed. Regards, stozaki

5 years 前 | 1

| 已接受

已回答
How to simulate a Do-While loop in MATLAB using Stateflow model ? I need to simulate an alarm using do-while loop and it is a part of my assignment. Please do the needful to help me.
I attached example script and stateflow chart model. I can't attach the .SFX file, so I zipped and attached. Regards, stoza...

5 years 前 | 0

已回答
How can I fopen files in different directory
Hello, Please add the path containing the file you want to open to the MATLAB search path. path What Is the MATLAB Search P...

5 years 前 | 0

已回答
Can I install Matlab on a Surface Pro?
You can see the system requirements if you need additional detail. Running MATLAB on a Microsoft Windows Surface Pro 4

5 years 前 | 0

已回答
"duration" function in stateflow using fixed-point datatype for time
't' is a reserved word of the double data type. Therefore, you cannot set attributes such as data type. I thought that using th...

5 years 前 | 0

已回答
Parsing fails for library
I got rid of the error. 1. The function setting of the library block has been set "reusable". 2. RTWUseSimCustomCode of the co...

5 years 前 | 0

已回答
How do I programmatically set the parameters of a Simulink-PS Converter?
Hello Isaac, I attached example model and script. The set_param function can change the value of only one property in one exec...

5 years 前 | 1

已回答
次元のサイズ不一致エラー
問題は解決されましたでしょうか? エラーの原因は恐らく、MATLAB Functionブロックの入出力の信号属性の設定が不足しているものと考えられます。今回の場合ですとArrayという出力変数の次元が可変であると思われますので、信号属性は可変とし、サイズ...

5 years 前 | 0

| 已接受

已回答
How can I prevent a new MATLAB session from being opened when using mlDiff from git-bash (git for Windows)?
Could you use "!" in the MATLAB command window? for example !git diff fileName Run External Commands, Scripts, and Programs ...

5 years 前 | 0

已回答
How to load a two-dimensional array using 'From File ' block in Simulink
Please download model and .mat file attached. (created by R2019b) And execute following script. model = 'signal_5model'; % def...

5 years 前 | 0

| 已接受

已回答
How to display signal dimensions on signal lines?
Hello Starhowl, I attached the signal line display procedure as a .gif file. Regards, stozaki

5 years 前 | 0

| 已接受

已回答
Generate a HDL IP Core using MATLAB command line
Hello, Please refer following documentation. Run HDL Workflow with a Script Regards, stozaki

5 years 前 | 0

已回答
Change value for another value
Hello Sarah, Sample code with a reduced number of arrays. In your case, it's an array of 99999 values, not an array of 25 valu...

5 years 前 | 1

已回答
Where's the debug tab? Update: Solution found: Documentation didn't match Matlab-version!
Hello Starhowl, I have attached the steps to show the debug window. You need to place at least one Simulink block on the canvas...

5 years 前 | 0

| 已接受

已回答
How to prevent addition from showing up in command window
If you get only 1000, you can try following script. N=10; err=1; while err>10^-3 N=N+1; total=0; for n=1:N y...

5 years 前 | 0

| 已接受

已回答
Using complex structure in simulink constant block
Hello, Please try attached model. execute bus object definition file. Simulate model. MathWorks dcoumentation : Simulink.B...

5 years 前 | 1

| 已接受

已回答
Fixed point tool conversion
Please try following script. model = 'modelName'; % define your model name sud = [model '/sud']; % define system under design ...

5 years 前 | 1

已回答
How to Configure simulink out-ports to generate specific argument of function?
Hello Amit, How do you use model referencing? You can add arguments by using a model reference and setting the storage class...

5 years 前 | 0

| 已接受

已回答
Downgrade to R2018a (from R2019b) to use logintimeout funtion didn't work.
Please refer following answer logintimeout using Database toolbox in R2019a

5 years 前 | 0

| 已接受

已回答
How to import an excel file that contains an absolute time column?
Hello Please define a return value of xlsread. for example.. [~,~,raw] = xlsread('ECUSIMTEST0000-000-01.csv') raw = 13×...

5 years 前 | 0

已回答
How to open .slx files created in R2019b using R2019a
Hello Richard, Do you use Simulink in your PC? Please try following command and refer the MathWorks document. Simulink.export...

5 years 前 | 0

已回答
Illegal Fixed-Point Data Type: the number of bits exceeded the supported maximum?
Hello TarikTech, The maximum 'word length' supported by Fixed-Point Designer is 128. It looks like the word length has exceeded...

5 years 前 | 1

| 已接受

已回答
Simulink ブロックの前景色のデフォルトカラーを変えるには
ご質問ありがとうございます。 問題は解決されましたでしょうか? 調べてみたのですが、Simulinkの既定の設定を変更するには set_param(0,'プロパティ名','設定値') を使用します。しかし、設定可能なプロパティにブロックの背景色...

5 years 前 | 0

| 已接受

加载更多