已解决


2倍してみよう - ここからスタート!
初めにこの問題を試してみよう。 入力としてxを与え、それを2倍して結果をyに代入せよ。 Examples: Input x = 2 Output y is 4 Input x = 17 Output y is 34 ...

5 years 前

已解决


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

5 years 前

已回答
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

| 已接受

已回答
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

| 已接受

已解决


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

5 years 前

问题


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

5 years 前 | 0 | 30 个解题者

已回答
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

已解决


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

5 years 前

已回答
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

| 已接受

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已回答
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

已解决


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

5 years 前

已解决


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.

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已回答
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

| 已接受

加载更多