Question


明示的に型指定されないSimulink信号をデフォルト設定的に型指定したい
【前提】 Simulinkブロックの出力データ型は一般的に下記の様な選択肢を持ちます。 'int8'や'uint32'の様な明示的指定の他に「継承:逆伝播で継承」「継承:入力と同じ型」等の指定方法があります。 'Inherit: Inherit vi...

4 years ago | 1 answer | 0

1

answer

Answered
フォルダ内の画像を読み込み,そのlab値をcsvファイルに出力する.
グラフィックス ファイルからイメージを読み込む - MATLAB imread - MathWorks 日本 RGB を CIE 1976 L*a*b* に変換 - MATLAB rgb2lab - MathWorks 日本 ファイルへの行列の書き込み...

4 years ago | 0

| accepted

Solved


Compute the dilation of a binary image
A basic operation in image analysis is the dilation. Given an image where each pixel is either on or off (black/white, true/fals...

4 years ago

Answered
forループについて
平方根平均二乗レベル - MATLAB rms - MathWorks 日本 > 質問1 各列ごと(8つの筋)にRMS処理を行いたいと考えております。その際はどの様にfor ループを回せば良いでしょうか。 for ループはそのままで、列を指定する添え字...

4 years ago | 0

| accepted

Answered
ラインの伝搬ラベルの存在確認
信号ラベル伝播 - MATLAB & Simulink - MathWorks 日本 >特定のラインに伝搬ラベルが存在しているかどうかを確認する方法はありますか。 上記リンク先の"代替"方法「ライン(信号線)をクリックしてラベルを"<"に変更する」が最...

4 years ago | 0

| accepted

Answered
m×n行列で表現される表面形状の形状偏差
最近傍点探索 - MATLAB dsearchn - MathWorks 日本 回答の例と図示は2次元で進めます。下記のグラフで一目瞭然と思います。3次元でも同じです。 x = (0:pi/20:pi)'; A = sin(x); % Aは正弦波(青...

4 years ago | 0

| accepted

Solved


2D - Mean Filter
Assume you are given an "image" matrix of size NxM. Reduce the image noise by implementing a mean filter window of size 9 (a 3x3...

4 years ago

Solved


Sum of the pixel values for the blue color
Calculate the sum of the pixel values for the blue color, with a picture as an input. *NOTE:* The picture will be provided as...

4 years ago

Answered
3次元配列の平均について
mean関数にオプション"3"を付けると期待通りの動作になります。 配列の平均値 - MATLAB mean - MathWorks 日本 A = repmat([1 2 3; 4 5 6],[1 1 4]) B = mean(A,3)

4 years ago | 0

| accepted

Answered
How to find minimum and maximum pixel value in image
>i want detect the pattern and find the minimum and maximum value for the pattern The images have black background with value 0...

4 years ago | 0

| accepted

Solved


Create an 8-color version of an image
This problem was inspired by a tweet I saw from @MATLAB regarding <http://www.mathworks.com/matlabcentral/fileexchange/37816-the...

4 years ago

Answered
Put Zero Value randomly in wave function
Yes it is possible. You can put zero value by making random value index of y. %Sine wave freq=400; Amp=2; t_samp=1/8000; T...

4 years ago | 0

Answered
Can anyone help me out what does sign(rand-0.5) command mean
Uniformly distributed random numbers - MATLAB rand (mathworks.com) rand generates a uniformly distributed random number between...

4 years ago | 1

Solved


RGB to CMYK
Convert an RGB code to the corresponding CMYK code for printing. The RGB input is a [1×3] double array between 0 and 1. ...

4 years ago

Answered
線形2次元plotのグラデーション
>このように幾つかのグラフを同時に描くとき、1~nまでグラデーションで表すにはどうしたら良いでしょうか? colororder関数で「色の順序」を定義すれば、plot関数で指定しなくても指定色を順に選んで描画してくれます。 グラデーション色は「事前定義...

4 years ago | 0

| accepted

Answered
条件を初めて満たす時の行数を知りたい
a = [1 4 6 7 2 7 8 9; 2 1 0 5 1 0 2 3]; b = (a - a + 1) ./ (a >= 5) .* cumsum(a - a + 1, 2) % 各行において初めて5を越えるのは何列目? min(b') % 今...

4 years ago | 0

Solved


Draw a "S" in a zero matrix
Given a x-by-x matrix filled with zeros (x is odd and > 3). Use 1 to draw a number S into it! Like this: x = 5, y = 1 1 1 1 1 ...

4 years ago

Answered
縦方向、もしくは横方向のみに規定幅(50ピクセル)での畳み込みを行いたいのですが
畳み込みおよび多項式乗算 - MATLAB conv - MathWorks 日本 先の回答1、先の回答2を振り返ると、自分の考えばかりで肝心の質問の回答になっていないと反省しました。 上記畳み込み関数を使用しました。 base = imread('...

4 years ago | 1

| accepted

Answered
縦方向、もしくは横方向のみに規定幅(50ピクセル)での畳み込みを行いたいのですが
近傍処理とブロック処理 - MATLAB & Simulink - MathWorks 日本 image processing toolboxがあれば、上記の各種関数を参考にすべきと思います。 先の回答と同様に50*50*5*4の画像積層データを作成し...

4 years ago | 1

Answered
縦方向、もしくは横方向のみに規定幅(50ピクセル)での畳み込みを行いたいのですが
MATLABなら(他の言語でも)、上図の様に50*50*5*4にすれば考え易いです。 base = imread('coins.png'); base = base(51:100, 51:100); % baseは50*50ピクセルの画像 sta...

4 years ago | 1

Answered
.mat
まず①について回答するため、質問の状況を再現します rng = 1:20000; lst = perms('abcdefgh'); Name = cellstr(lst(rng,:)); Age = randi([20 80],rng(end),1);...

4 years ago | 0

| accepted

Answered
slxファイルを開くことができない
モデルの保存 - MATLAB & Simulink - MathWorks 日本: モデルを前の Simulink バージョンにエクスポートする >この環境ではslxファイルは開くことができないのでしょか? R2010b環境でslxモデルを開く事はで...

4 years ago | 0

Answered
カラー分布画像の境界抽出について
セグメンテーションの領域境界の検出 - MATLAB boundarymask - MathWorks 日本 Deep Learningによる画像認識において、画像を塗り絵の様な形に(セグメント化)した結果として「ラベル行列(数値や logical値の2...

4 years ago | 1

| accepted

Answered
画像の白を透明にして別の画像と重ね合わせる方法
>画像2の白を透明にしたうえで画像2を上位とした重ね合わせをしたいのですが、どうしたらできますでしょうか。 画像2を二値化(反転)してANDを取りました。今回は窓を残し窓枠を黒(0)にするためマスクしただけで目的の画像データになりました。もし窓枠の画像と...

4 years ago | 0

| accepted

Solved


Finding peaks
Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...

4 years ago

Answered
find関数とfor関数をもちいた全データの取得について
ヒストグラムのビンのカウント数 - MATLAB histcounts - MathWorks 日本 ヒストグラム プロット - MATLAB - MathWorks 日本 X = rand(10000,1)*2-1; % X: -1.0~1.0の乱数...

4 years ago | 0

Answered
エクセルシートの文字色を調べる
【類似の質問】 MATLAB から Excel Spreadsheet にセル背景色やフォント色を指定してデータを書くにはどうしたらよいですか? - (mathworks.com) How to set excel cell color to red ...

4 years ago | 1

Answered
simulinkにて、Counterブロックからの出力信号を一定時間保持する方法はありますか?
How do you hold the value of a signal? » Guy on Simulink - MATLAB & Simulink (mathworks.com) >この出力を、0.01sの間1のまま保持したいのですが、そのような動...

4 years ago | 0

| accepted

Answered
変数内の行列を取り出すためのfor構文を作成したい。
MATLAB 式を評価する - MATLAB eval - MathWorks 日本 a = ones(1,2); b = zeros(1,2); list = ['a';'b']; num_list = size(list); for i = ...

4 years ago | 1

| accepted

Answered
csvデータ 文字列
>文字化けをしていない、数値の入った行のみを取り出す方法はないでしょうか そのような解決方法の前に、csvファイルを正しいエンコードで読み込む事を試してみてください rmmissing関数でNaNを削除する事は出来ても、文字化け部分を削除する事は出来ま...

4 years ago | 2

| accepted

Load more