Solved


ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける(コンマはオプション)。 x = [1, 2, 3, 4] 問題:次のベクトルを出力する関数を作成せよ。...

4 months ago

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

4 months ago | 0

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

4 months ago | 1

| accepted

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

4 months ago | 0

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

4 months ago | 0

| accepted

Solved


Find index of non empty cell array
This question aims to understand the characteristics of MATLAB programs. Educational problem. Please find empty index of cell...

4 months ago

Problem


Find index of non empty cell array
This question aims to understand the characteristics of MATLAB programs. Educational problem. Please find empty index of cell...

4 months ago | 0

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

4 months ago | 0

| accepted

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

4 months ago | 0

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

4 months ago | 1

| accepted

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

4 months ago | 0

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

4 months ago | 0

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

4 months ago

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

4 months ago | 1

| accepted

Solved


only input
Return the output without writing any code into the function.

4 months ago

Solved


Times 3 problem
When you enter the number, it should return the number multiplied by 3

4 months ago

Solved


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

4 months ago

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

4 months ago | 0

Solved


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

4 months ago

Solved


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

4 months ago

Solved


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

4 months ago

Solved


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

4 months ago

Solved


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

4 months ago

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

4 months ago | 0

Answered
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

4 months ago | 0

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

4 months ago | 0

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

4 months ago | 0

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

4 months ago | 1

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

4 months ago | 0

| accepted

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

4 months ago | 0

Load more