문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

답변 있음
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...

6년 초과 전 | 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...

6년 초과 전 | 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...

6년 초과 전 | 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...

6년 초과 전 | 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...

6년 초과 전

문제


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

6년 초과 전 | 0 | 솔버 수: 33

답변 있음
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...

6년 초과 전 | 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...

6년 초과 전 | 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...

6년 초과 전 | 1

| 수락됨

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

6년 초과 전 | 0

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

6년 초과 전 | 0

문제를 풀었습니다


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

6년 초과 전

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

6년 초과 전 | 1

| 수락됨

문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

답변 있음
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...

6년 초과 전 | 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 ...

6년 초과 전

문제를 풀었습니다


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.

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

답변 있음
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...

6년 초과 전 | 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

6년 초과 전 | 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...

6년 초과 전 | 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...

6년 초과 전 | 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...

6년 초과 전 | 1

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

6년 초과 전 | 0

| 수락됨

더 보기