figure を作成する際にあらかじめ figure ハンドルを取得しておくことで、gcf を使わなくてもそれぞれの figure を操作可能です。例えば、以下のようにすれば 2 つの figure に対するハンドル hFig1, hFig2 を取得できま...

1 year ago | 1

| accepted

Excluding types of extension files on a loop
You can do that more effective way by using wild card character "*", like: imgFolder = pwd; % <- set to your image folder path ...

1 year ago | 2

Tableからデータを抽出する方法

1 year ago | 0

how to generate and cover all the possible arrays using two enties
Another possible solution: [p,q,w,s] = ndgrid({'H','C'}); A = [p(:),q(:),w(:),s(:)]; disp(A)

1 year ago | 0

イメージの行列の計算について

1 year ago | 2

| accepted

how to convert bmp image to Bpg
Unfortunately, currently BPG image format is not supported. As a workaround, how about installing bpgenc from the following sit...

1 year ago | 0

いろいろな解決法があるかと思いますが、fminsearch を使って円をあらわす式の係数を推定するのはいかがでしょうか？ 以下はその一例です。 x = [x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12]; y = [y1...

1 year ago | 1

| accepted

Bit Error Rate (BER) performance of different digital modulation schemes such as Binary Phase Shift Keying (BPSK),
I believe the following documentation page would be help: https://jp.mathworks.com/help/comm/ref/berawgn.html

1 year ago | 0

Add missing numbers of 0's and 1's in an array
How about the following? % Sample data x = [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0]; % Calculate run...

1 year ago | 0

1 year ago | 0

| accepted

Channel

Data

1 year ago

What methods can be used for lossless audio compression?
I believe the most simplest way to save data as a lossless audio file using MATLAB is audiowrite. This function can save data a...

1 year ago | 1

get the distances between points
How about the following solution? load('xy_coordinate.mat'); % Calculate distance between each node D = pdist(xy); % Con...

1 year ago | 2

| accepted

How to export array elements?
How about the following? A = (1:20)'; N = numel(A); idx = mod(0:N-1,10)' <= 1; X = cell(5,1); for kk = 1:5 X{kk} = A...

1 year ago | 0

| accepted

char array to pick
The solution should be: b = a(:,2:3);

1 year ago | 0

| accepted

Help with findgroups command
Like this? a = {... 'apples' 1 2;... 'orange' 2 3;... 'apples' 3 4;... 'Pear' 4 5;... 'apples' 5 6;}; % Ext...

1 year ago | 0

| accepted

List of Node pairs
Another possible solution: numNode = 4; [r,c] = find(~eye(numNode)); v = [c,r]; >> v v = 1 2 1 3 ...

1 year ago | 1

| accepted

cell配列内の特定の行を取り出し，それらの行を一つのcell配列にまとめることはできますか？

1 year ago | 0

| accepted

テーブルと構造体の結合

1 year ago | 1

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

1 year ago | 0

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

1 year ago | 1

| accepted

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

1 year ago | 0

| accepted

As @Walter Roberson -san suggested, timetable and retime is the best solution. Please try the following: TT = readtimetable('_s...

1 year ago | 0

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

1 year ago | 0

findpeaks関数を使って暗い画像の中に存在する広がりのある輝点を検出したいのですが、方法はありますか？

1 year ago | 1

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

1 year ago | 1

| accepted

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

1 year ago | 1

| accepted

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

1 year ago | 0

| accepted