Answered
画像内の色を検索する方法
非ゼロ要素のインデックスと値を見つける - MATLAB find - MathWorks 日本 MATLABのfind関数で赤い範囲の座標を知る事が出来ます。 配列の最大要素 - MATLAB max - MathWorks 日本 配列の最小要素 -...

5 years ago | 1

| accepted

Answered
Simulink上で移動平均を算出する方法
>最も容易に実現できる手法はどの手法でしょうか 2番目だと思います。機能も高級でポンと置いてパラメータ設定するだけなので。但しDSP System Toolboxが必要です。 実現可否はと言えば、どれでも実現可能です。MATLABに慣れた方なら1番目(...

5 years ago | 1

| accepted

Answered
アニメーションに画像を貼り付ける
MATLAB Help - Texture Map - YouTube MATLABのグラフィックス関数を用いた描画の表面にテクスチャマッピングを行う設定があります。動画の例ではfindobjやset関数を使っていますが、surf関数の引数設定で同じ事が...

5 years ago | 1

| accepted

Answered
合成関数計算
予め関数を定義すれば、数学の数式と同様にf(g(x))と書けば動作します。(a,b,c等係数は固定で適当な値です) もし質問の意図と回答内容が違っていたら教えて下さい。 x = 10; y = f(x) x = 5; y = g(x) y = ...

5 years ago | 1

Answered
MATLABを使って、Simulinkのモデルを実行する方法
%G1=2; G2=4; G3=6; G4=8; % 値は適当 %sim('mysample',G1,G2,G3,G4); %"OPTIONS" パラメーターは、SIMSET によって作成された構造体でなければなりません sim関数に単独のスカラ値を...

5 years ago | 2

| accepted

Solved


Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle,...

5 years ago

Solved


counting groups!
This problem is about counting groups. Example If you have x: x = [0.8 0.8 0.8 0.3 0.3 0.4 0.5 0.6 0.6 0.9] then a...

5 years ago

Answered
コマンドウィンドウでビープ音を鳴らないようにするには?
結論:直接的な対策方法がありません。Windowsのシステムサウンド設定で間接的に対策するのは如何でしょうか? 詳細:興味を持って調べてみましたが、質問内容に対しMATLABの設定で直接対策する方法は無いようです。同一の質問でも解決に至っていません。be...

5 years ago | 2

| accepted

Answered
配列の一部をほかの配列の要素と置き替える
@akasa様の前の質問:画像の上に画像を貼り付ける - MATLAB Answers - MATLAB Central (mathworks.com) と同一内容の回答になりますが、厳密にいえば画像の貼り付けではなく配列の置き換えに関する質問なので異な...

5 years ago | 1

| accepted

Answered
MATLAB/Simulink 変数の検索方法
>MATLAB Simulink内に使用している変数や文字を検索する方法を教えてください。目標として、ENGINEやFANSといった特定の単語を見つけたいです。 色々な方向に解釈できますので思い付く限り回答致します。 Ctrl+fまたは「編集」メニュー...

5 years ago | 3

| accepted

Answered
任意のタイミングの撮影
matlab GUI 変数 共有方法 - MATLAB Answers - MATLAB Central (mathworks.com) 上記質問と同じ回答になります。

5 years ago | 0

| accepted

Answered
GUIの使用方法
類似の質問:Matlabを所有しないPCでのアプリの起動 - MATLAB Answers - MATLAB Central (mathworks.com) >MATLAB Compilerツールボックスがあれば質問の目的を果たしますが、MATLAB C...

5 years ago | 0

| accepted

Answered
matlab GUI 変数 共有方法
関数内部で使った変数はローカル変数で、当該関数を抜けるとそれらローカル変数は全て解放されてしまいます。変数を残したい場合、関数内で”永続変数”を設けるか、予め関数の外に変数を設けます。この内、今の用途に最適なのは下記真ん中の”メンバ変数を作成して用いる方法...

5 years ago | 1

| accepted

Answered
matlabアプリ 写真 表示
imshow('picture_name.png','Parent',app.UIAxes); 詳細な理由や仕組みは下記ドキュメントに記述されています。 App Designer でのグラフィックスの表示 - MATLAB & Simulink - M...

5 years ago | 1

| accepted

Answered
黒い箇所を除いた輝度値の平均、または合計を求めたいです
画像データは0~255の整数値で、各画素の輝度値を表します。 (a'<1)は、a'の値が0の画素に対しTRUEを返します。それを合計すれば黒い箇所の面積(画素数)になります。 a'(a'<1)は、黒い箇所の輝度​値のみを選択します。 a'(a'>=1...

5 years ago | 2

| accepted

Answered
Matlab less than comparison
>Is this correct? ---> Yes, it is correct syntax. No, it does not behave as you expect. cA = randi(10,[3 10]); i = 1; NC = 5; %...

5 years ago | 0

Answered
任意のエクセルに対してシート名を指定して入力することはできますか?
MATLAB の COM オブジェクト - MATLAB & Simulink - MathWorks 日本 最初のシートの後ろにスプレッドシートを挿入 - MATLAB & Simulink - MathWorks 日本 Sheets.Add メソッ...

5 years ago | 1

| accepted

Solved


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

5 years ago

Solved


For a rectangle, if x is the length and 2x is width. Then find out x from the area of the rectangle?
For a rectangle, if x is the length and 2x is the width. Then find out x from the area of the rectangle? if the area is equal...

5 years ago

Solved


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

5 years ago

Solved


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

5 years ago

Answered
How to find maximum square zero matrix through the biggest matrix?
What I did is: Solving Find the biggest empty box - MATLAB Cody - MATLAB Central (mathworks.com) Cheating other solution! --> ...

5 years ago | 2

| accepted

Solved


Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

5 years ago

Answered
Matlab画面について;script, input running file, data of results 全てを同一画面に表示する手順
デスクトップのレイアウトの最適化 - MATLAB & Simulink - MathWorks 日本 「複数のウィンドウが重なった状態だと、何度もウィンドウをめくる作業が煩わしいので、全項目を一つのウィンドウに表示したい」という問題を抱えていると解...

5 years ago | 1

| accepted

Solved


Identify Ruth-Aaron numbers
After Hank Aaron hit his 715th home run and passed Babe Ruth’s total of 714, Carl Pomerance noticed that the union of the prime ...

5 years ago

Answered
MATLAB カメラ 使い方
>タスクの中にWebカメラを用いる機能が見つかりませんでした。 デスクトップ版のMATLABに「MATLAB Support Package for USB Webcams」というアドオンを追加する必要がある様です(MATLAB Onlineの場合はイン...

5 years ago | 0

| accepted

Answered
長方形の切り出し
>どのような関数を用いると、簡単にできるでしょうか。 目的にズバリ合致する関数はimcropです。Image Processing Toolboxが必要です。詳細については下記ドキュメントを参照ください。 イメージのトリミング - MATLAB imc...

5 years ago | 0

| accepted

Answered
SimulinkのLineのコマンドウィンドウ上からの操作について
下記はエラー処理の無い場当たり的なコードです 質問の条件を外れたモデルでは恐らく想定通りに動きません 重複したラベルを持つ等の複雑なモデルでは想定通りに動きません ブロックを追加する位置(座標)の考慮はしていません % 添付モデルを開く(既にモデル...

5 years ago | 0

| accepted

Answered
13.2 判定分岐 追加の練習
doDisplayは変数名なので、自分で定義してください。質問文のコードは「doDisplayが何か分からない」旨のエラーになります。下記のような定義をすれば問題文の意図した動きになります。 doPlot = 0; doDisplay = 1; % d...

5 years ago | 3

| accepted

Answered
ライブエディタタブが見つからない
【具体的なライブエディタタブの開き方の例】 ライブ エディターでライブ スクリプトを作成 - MATLAB & Simulink - MathWorks 日本 >ライブ エディターでライブ スクリプトを作成するには、[ホーム] タブに移動して [新規ラ...

5 years ago | 2

| accepted

Load more