Solved


Given n, create n random numbers such that their standard deviation is also n.
Given n, create n random numbers such that their standard deviation is also n.

5 years ago

Answered
forループに関する計算速度について
>計算速度はどのくらい早くなるのでしょうか。 単純に、MATLAB上で実行してみました N = 10000000; X = randi(N,[1,N]); tic; for i = 1:N, Y(i) = X(i) ^ 2; end toc; ...

5 years ago | 1

Answered
PLEASE HELP!!!! PLOT STEP FUNCTION WITH DEFINED AMPLITUDE
>[y,t] = step(sys,opt); Why must we do smth like that? You don't have to do that. You can choose both way, with [y, t], or with...

5 years ago | 0

| accepted

Answered
スペクトログラム画像を逐次保存したい。
特定のファイル形式への Figure の保存 - MATLAB saveas - MathWorks 日本 saveas関数を使わない理由はありますか?なければ最後に開いたfigureをsaveas関数でファイルに保存できます。 filename =c...

5 years ago | 0

| accepted

Solved


Flip coins

5 years ago

Answered
リアルタイムで目を認識して,認識した時にスクリーンショットを取りたい
静止画をPCのフォルダ内に保存する※この回答を適用する場合、前回の回答の適用は不要です Acquire single image frame from a webcam - MATLAB snapshot - MathWorks 日本 イメージをグラフ...

5 years ago | 0

| accepted

Answered
一つの行をグループ分けすることはできますか?
こんなんでどうでしょう a = logical([0 0 0 1 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 1 1]); idx = find([diff(a) numel(a)]); %境目のインデックス width = diff...

5 years ago | 3

| accepted

Solved


Project Euler: Problem 8, Find largest product in a large string of numbers
Find the greatest product of five consecutive digits in an n-digit number. 73167176531330624919225119674426574742355349194934...

5 years ago

Answered
I dont know where i was wrong
You are trying to access to variable x's index from 1 (min) to length(x)+4 (max). for i=1:length(x) number = str2num(...

5 years ago | 1

Answered
I dont know where i was wrong
Project Euler: Problem 8, Find largest product in a large string of numbers - MATLAB Cody - MATLAB Central (mathworks.com) Ther...

5 years ago | 1

Answered
I dont know where i was wrong
Solve Problem - MATLAB Cody - MATLAB Central (mathworks.com) >The large number will be given as a string, 1xn characters. So, ...

5 years ago | 0

Answered
リアルタイムで目を認識して,認識した時にスクリーンショットを取りたい
「目を認識した時」=「認識した特徴点(numPts)が10個以上になった時」に、静止画(videoFrame)を別の変数にコピーする処理です。 else detectedFrame = videoFrame; ...

5 years ago | 0

Solved


Convert the matrix as -

5 years ago

Solved


Flip the matrix as -

5 years ago

Answered
イメージラベラーを利用して目,口,歯を検出した時に文を表示する方法
上記コメントに記入した通り「認識オブジェクト名(label)に『目』『口』『歯』が含まれているか否かを判定」しました その結果を用いて、『目』『口』『歯』の組み合わせをif-else文で判断しました。 この回答内容はdetect関数への入力画像が1枚の...

5 years ago | 0

| accepted

Answered
歯を検出後に、if文を使ってメッセージを表示する
何かを検出するプログラムの内容は不明ですが、if文の使用方法については下記のように回答できます。 検出結果が「検出した」と「検出できなかった」の2通りの場合、2の3乗=8通りの組み合わせがあります。 その8通りをそのままif文で愚直に判断していけば、全...

5 years ago | 1

| accepted

Solved


How many trades represent all the profit?
Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...

5 years ago

Solved


Consecutive Prime Numbers

5 years ago

Solved


print 'Hello W0rld'

5 years ago

Solved


Find if a given sentence is a palindrome
Given a string/character array, return true if the string is a palindrome else returns false. For example: sample_text =...

5 years ago

Solved


Check if a matrix is a palindrome in all directions
Check if a matrix is a palindrome both vertically and horizontally. You function will return *true* for |[1,2,1]| or |[2,7,2;...

5 years ago

Answered
is my code right ?
Yes, it is.

5 years ago | 0

Solved


Palindrome numbers
Find the palindrome numbers (two or more digits) from 1 to n where n is the number passed to the function.

5 years ago

Solved


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

5 years ago

Solved


Return fibonacci sequence do not use loop and condition
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: ...

5 years ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

5 years ago

Solved


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

5 years ago

Load more