Gelöst


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.

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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]

mehr als 6 Jahre vor

Gelöst


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.

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0