Réponse apportée
cell配列内の特定の行を取り出し,それらの行を一つのcell配列にまとめることはできますか?
対象の cell 配列を C1 とすると、以下のようにして抽出可能です。 idx = cellfun(@(x) x == 4, C1(:,3)); C2 = C1(idx,:);

environ 3 ans il y a | 0

| A accepté

Réponse apportée
テーブルと構造体の結合
変数 B が数値配列ということでしたら、array2table で table 型に変換できます。 T = [A, array2table(B)];

environ 3 ans il y a | 1

Réponse apportée
Trying to set Y-Axis to Minutes:Seconds for swim times. Would like to set range from 0 to 3:30 and eliminate leading zeros
How about the following solution? % Sample data t = 0.25+3*rand(100,1); % Create boxplot figure boxplot(t) d = 0:0.5:3.5...

environ 3 ans il y a | 0

Réponse apportée
plotting bar graph using matlab
How about using a stem plot? The following is an example: tt = readtimetable('data.txt'); figure stem(tt.Time, tt.Var1,'Ma...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to find local peaks in a 3D plane
How about the following? % Load data load('positionsplane.mat'); % Arrange it as a table variable tData = array2table(posi...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Linear Interpolation hard task
As @Walter Roberson -san suggested, timetable and retime is the best solution. Please try the following: TT = readtimetable('_s...

environ 3 ans il y a | 0

Réponse apportée
How can I extract unique pairs of matrix in reverse order?
How about the following way? A = [... 1 1 2;... 2 1 4;... 3 2 1;... 4 2 3;... ...

environ 3 ans il y a | 0

Réponse apportée
findpeaks関数を使って暗い画像の中に存在する広がりのある輝点を検出したいのですが、方法はありますか?
試しに簡単なプログラムを作成してみました。行方向と列方向でピークを検出してプロットすると、検出されたピーク点は輝点の上に十字型に表示されます(右図)。ただ、輝点内の輝度分布によっては十字の縦と横の線がきれいなラインにならない場合や、中央でクロスしない場合な...

environ 3 ans il y a | 1

Réponse apportée
findpeaksの閾値設定について
@Ibuki Takahashi さん、ご説明ありがとうございます。 「xの値の範囲が10以下の時」という条件を、「ピークの半値全幅 (FWHM: Full Width at Half Maximum) が 10以下の時」と近似的に読み替え可能でしたら、...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
Reed Solomon encoding/decoding for binary data
Since RS system object has 'BitInput' option, I would recommend using comm.RSEncoder rather than rsenc if you want to evaluate F...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to quickly find out the repeat integers in an array?
I believe it's time to use accumarray function! How about the following? A = [4 20 5 4 7 5 9 5 31]; B = accumarray(A',1); ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
8 - bit linear feedback shift register
How about using comm.PNSequence in Communications Toolbox?

plus de 3 ans il y a | 0

Réponse apportée
基準値の倍数に....
以下のような処理ではいかがでしょうか? c = 0.3; % 基準値 inValue = 5*rand(10,1); % 切り上げ/切り捨て前の値 outValue = c*round...

plus de 3 ans il y a | 0

Réponse apportée
Errors in transfer learning using resnet101
Since ResNet-101 is imported as a DAGNetwork object, the following steps will be needed (more details can be found in this Link)...

plus de 3 ans il y a | 3

| A accepté

Réponse apportée
Read a 55x55 matrix with matlab
How about the following? A = readmatrix('Averaging_kernel_MLS_v04_0N.txt'); A = reshape(A',60,[])'; A = A(:,1:55);

plus de 3 ans il y a | 0

Réponse apportée
グラフの目盛りを片方だけ非表示にする方法
box off と設定したときに表示されるプロットのようなイメージでしょうか? figure plot(magic(4)) box off

plus de 3 ans il y a | 0

A soumis


MATLABによる予知保全のデモ
データをもとに異常状態を検出する手法として、これまで様々な手法が提案されています。そのなかでも、多次元データの中から「教師なし」で異常を検出する手法は実用上とても重要な手法です。本デモでは、代表的な「教師なし」の異常検出アルゴリズム3つをご紹介します。

plus de 3 ans il y a | 1 téléchargement |

Thumbnail

Réponse apportée
特定の範囲における二値化について(初心者です)
以下のような処理になるかと思いますが、いかがでしょう? % グレースケール画像を準備 I = imread('cameraman.tif'); % 幅の半分、閾値1、閾値2を準備 wHalf = round(size(I,2)/2); th1...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
構造体配列の並び替え (降順)
struct2table 関数でいったんテーブル型変数に変換して、sort 関数でソートしたうえで再び table2struct 関数で構造体配列に戻す、という方法ではいかがでしょうか?

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
空行列の判定方法
以下の方法ではどうでしょうか? % 例として、A(1,2)とA(2,1)がカラのセル配列を作成 A = cell(2,2); A{1,1} = rand(2); A{2,2} = rand(2); % カラのセルのインデックスを取得 idx...

plus de 3 ans il y a | 0

Réponse apportée
Use sorted variable to reorder rows of a matrix
How about the following solution? test = sum(Index_matrix==0, 2); [~, order] = sort(test); Index_matrix = Index_matrix(order,...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
任意の点を中心に指定したサイズでトリミングを行いたい
imcrop 関数を使って、以下のようにするとトリミングできます。 I = imread('student.jpg'); % 中心とcropするサイズ cent = [376, 687]; sz = [408, 408]; % [x, y...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
reshapeで空欄を詰めない方法
出力をN行3列の配列にするには、各行の要素数を3に揃える必要があります。このため、ご質問のようなケースでは各行の要素数を揃えるために空欄を別の値で埋める必要があります。例えば空欄をNaNで埋めるとして、下記のような方法はいかがでしょうか? A = [1 ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
findで特定した位置の個所にあるピクセルを拡張したいです。
以前ご質問頂いた内容のつづきと想定して、以下のような処理でしょうか? I = imread('image.jpeg'); % 画像読み込み BW = imbinarize(rgb2gray(I)); % 2値化 BW = ~BW; ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
変数の凡例の付け方
ご質問の文面より、1つの図 (figure) 内に10個のデータをプロットするとともに凡例もあわせて表示したいと理解しました(間違っていたらご指摘ください)。その場合、以下のようにすれば良いかと思います。 figure hold on for j=1...

plus de 3 ans il y a | 0

Réponse apportée
forを使って測定した情報すべてを纏めるにはどのようにすればいいでしょうか?
とくに for ループを使う必要がなければ、filter2 関数で同じことが可能です。以下は簡単なサンプルコードです。 I = imread('image.jpeg'); %画像読み込み BW = imbinarize(rgb2gray(I)); %2...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
塗りつぶしの円を描くにはどうすればよいのでしょうか
rectangle 関数の Curvature プロパティを [1 1] に設定する方法で円を描画するのはいかがでしょうか? colors = {'b','r','g','y','k'}; X = rand(5,1); Y = rand(5,1)...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to count the amount of excell row
How about using accumarray function? The following is an example: % Sample data (column vector containing 1~10 randomly) data ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Excelから読み込んだ値を、規則的に順番に足し合わせるにはどうすればよいでしょうか。
movsum 関数を使うと、移動合計値を簡単に算出することができます。以下はその一例です。 % Sample data data = rand(100,1); % Apply movsum dataSum = movsum(data,5,'En...

plus de 3 ans il y a | 0

Réponse apportée
行列から条件を指定して値を取り出す
もし、行列Aの2行目の要素で 1 (or 0) が偶数個連続している部分があり、かつ要素が 1 (or 0) の列のうち 2k 番目と 2k-1番目との差を取りたいということであれば、以下の方法で計算可能です。 A = [ 0 1 2 4 3 6 4 8...

plus de 3 ans il y a | 0

| A accepté

Charger plus