Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

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

más de 6 años hace | 0

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

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada

Resuelto


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

más de 6 años hace

Problema


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

más de 6 años hace | 0 | 32 solvers

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

Resuelto


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

más de 6 años hace

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

más de 6 años hace | 1

| aceptada

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

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

más de 6 años hace | 0

Resuelto


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

más de 6 años hace

Resuelto


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.

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

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

más de 6 años hace | 0

Respondida
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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 1

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

más de 6 años hace | 0

| aceptada

Cargar más