Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

6 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

6 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

6 years ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

6 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

6 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

6 years ago

Answered
MATLAB Help Report shows No Examples and No See Also Line
Hello, Please see my script. Examples : Check for examples in the help text. The Help Report performs a case-insensitive sear...

6 years ago | 0

| accepted

Answered
How to get the property assigned block in annotation in command prompt
Hello Tianqing, Please try following command. annotationLists = find_system(gcs,'FindAll','on','type','annotation'); Please r...

6 years ago | 0

Answered
How to get signal line and block which connects with trigger port in model by code???
Hello galaxy, A Trigger block doesn't have a Trigger port. A Trigger port belongs to a subsystem block. Please execute my samp...

6 years ago | 0

Answered
Stateflow: How do I create one state output from multiple states?
Hello Ebbe, I have one suggestion. If you enable 'Log Active Leaf State' and 'Log Active State' on the Simulink Toolstrip, you...

6 years ago | 0

Answered
State Machine v/s Flow Chart.
Hello, State machine is sequential decision logic and flow charts is combinatorial logic. Please refer to the following docum...

6 years ago | 1

Answered
How to generate a bit pattern in 1 0 0 1 1 0 in Simulink
Hello Did you solve the problem? Shouldn't you use source blocks? I attach one example. This model was created with R2018a. ...

6 years ago | 0

Answered
Get editable parameters of blocks
Thank you for your question about get_param function. Please test : allParams = get_param(gcbh, 'ObjectParameters'); This blo...

6 years ago | 0

Answered
how to read excel from from Simulink chart
Hello, Thank you for your question about Stateflow chart. It looks like you want to call the built-in function xlsread of matl...

6 years ago | 0

| accepted

Solved


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

6 years ago

Solved


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

6 years ago

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

6 years ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

6 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

6 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

6 years ago

Solved


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

6 years ago

Solved


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

6 years ago

Solved


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

6 years ago

Solved


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

6 years ago

Solved


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

6 years ago

Answered
Simulinkブロックの値を取得する Matlab スクリプト
A.K様 コメントの返信を頂き、ありがとうございます。 少々長文となりますが、ご容赦ください。 まず、 ブロックパラメータ そのブロックで計算した値(simulink内ではほかのブロックに計算結果が渡される) について説明させて頂きます。その...

6 years ago | 1

| accepted

Answered
モデル参照 入力信号 配列
既に解決されているかもしれませんが、原因は参照先のモデルの入力の次元が27×1になっていないためと思われます。 これは、モデル参照は、「モデル参照の境界で信号属性は伝播できない」という制限があるためです。 したがって、参照先モデル(子モデル)の入力ポー...

6 years ago | 0

| accepted

Answered
データ インスペクター ログデータのエクスポート
ご質問頂き、ありがとうございます。 既に解決されているかもしれませんが、Datasetには複数のログデータがオブジェクトの形で格納されています。 Yuma Yamazaki様が作成されたように'data'という名前のDatasetを想定しています。なお...

6 years ago | 0

Answered
Simulink project version管理 について
ご質問を頂き、ありがとうございます。 既に解決されているかもしれませんが、Simulink プロジェクトとGitHubを連携する手順を簡単にまとめました。 (やり方は幾つかありますので、一例として考えて頂ければ幸いです) Git ソース管理の設定の「...

6 years ago | 0

Answered
インストールに失敗する。
ご質問頂き、ありがとうございます。 また、製品インストールでご迷惑をお掛けし申し訳ございません。 アンチウイルスソフトを無効にして頂いているにも関わらず、添付のエラーが発生しているとのことで、 お手数ではございますが、YASUTAKE MATSUI ...

6 years ago | 0