Community Profile

photo

Shunichi Kusano


MathWorks

44 total contributions since 2019

Shunichi Kusano's Badges

  • 6 Month Streak
  • Knowledgeable Level 3
  • First Answer

View details...

Contributions in
View by

Answered
How can I convert data format from "datetime" to "year&num" format?
Hi, jee. "w" must be in uppercase, "W". This is a sample code. x(1) = datetime("1984-03-02 00:00:00"); x(2) = datetime("2019...

3 days ago | 0

| accepted

Answered
While loop with random walk
I'm not sure if this is exactly what you want. clear num_stp=2000; position=zeros(size(num_stp)); for i=1:num_stp ...

6 days ago | 0

Answered
範囲の中から最大値や最小値を表示したいです。
線量体積ヒストグラムについて知らなかったので調べてみたのですが、 問題とする領域の中で、被曝線量がx以上である領域の比率f(x)が線量体積ヒストグラムという認識でいいでしょうか。 ご提示のプログラムでいうところのVが、各ボクセルにおける被曝線量だと仮定...

25 days ago | 0

Answered
複数の画像をかさねる
足して画像の数で割れば平均値になるのですが、データの型に注意が必要です。通常の画像ですとuint8型になっているとおもうのですが、それをそのまま足し合わせると255までしか値がないので、誤った計算結果となります。 もう一点注意としては、画像サイズです。平...

27 days ago | 0

Answered
Cell-Averaging CFAR DetectorにおけるCUTが端のセルの場合の処理について
コードをたどってみますと、配列からはみ出す部分については考慮されないようです。図だとターゲットから見て右半分のウィンドウだけを使って計算されることになり、配列からはみ出す左半分の窓はそもそもないものとなります。 もし、図のように循環的な窓にしたいなどがあ...

2 months ago | 1

| accepted

Answered
Grid in imagesc() not lining up to grid limits?
Hi Jonathan. The pixel coordinate is normal in your image. The center of each pixel is located at the cross of the grid lines. N...

2 months ago | 0

Answered
how can I create projected grid (UTM) to import in Qgis ?
When creating geotiff file, you can specify UTM coordinates. This is the link.

2 months ago | 0

Answered
Time for a series of pictures
Hi, Mohammed. You need cumsum function. (https://www.mathworks.com/help/matlab/ref/cumsum.html)

2 months ago | 0

| accepted

Answered
a 2D into a 3D Array
Hi. You can do it by reshape and permute like: PICT = [PICT; zeros(2, 2049)]; % (34803 2049) a = reshape(PICT.', 2049, 9, 386...

2 months ago | 2

| accepted

Answered
Problem with LFM chirp code
maybe chirp(t,1e9,10e-3,2e9); % Rise time 10ms -> 10e-3 is correct. However, the array size is quite large even in this case. ...

2 months ago | 0

Answered
Distributing the lines of any Matrix Randomly
A(randperm(3,3),:) hope this helps.

2 months ago | 0

| accepted

Answered
Indicate peak value of a signal in matlab plot
Does this meet your thought? I just changed the example of "findpeaks" a little. %% sample signal generation x = linspace(0,1,...

3 months ago | 0

| accepted

Answered
アナログ入力をプロットするときのエラーを無くす方法
timeが構造体ではないようですが、time.dataですとtimeが構造体であることが前提のコードになってしまっています。そのためのエラーではないでしょうか。 dispコマンドはデータを表示する関数で処理結果に影響はしないので、コメントアウトしてしまう...

4 months ago | 2

| accepted

Answered
Fixing loop values while plotting
Your code almost works. You need a closing parenthesis. plot(vals.b(vals.y==1 & vals.z==1,vals.x(vals.y==1 & vals.z==1)) % your...

4 months ago | 1

Answered
ワークスペース上の構造体の中のデータを、strcatコマンドで作った文字列で指示した、名称のデータを読み込ませたい。
matファイルの中身に複数の構造体が入っているとのことですので、matファイル読み込みの際に Signals = load('***.mat'); のように読み込むと、全てを含んだ構造体配列が一つできます。 構造体配列の各フィールドには文字列形式での...

4 months ago | 3

| accepted

Answered
Detecting multiple object in an image
You select only one of highly correlated pixels, because you find the maximum correlation by "find(R==(max(max(R))))". In order ...

5 months ago | 0

Answered
Compare two columns under 3 conditions
The following code counts the number of rows which meet the condition 2. nnz(phases(:,2) == 2 & phases(:,1) == 1) hope this he...

5 months ago | 0

Answered
How make the background of pcshow white instead of black?
Hi, you also need: set(gca,'color','w');

5 months ago | 1

Answered
MATLAB Image Edge Detection
This is one complicated example. I wanted it to be simpler. I'm afraid that white area in your image is a obstacle for Hough tra...

5 months ago | 0

Answered
How to remove shadow for ceramic tile?
Hi. As for the picture A, the removal of the shadow is quite difficult, since it is difficult even by eyes. As for the picture ...

5 months ago | 1

Answered
How can I find the centroid of an object in an image and crop a portion of it around that centre point
This is a rough code to detect the centroid of the object. I interpreted that the "object" is the largest one seen in the center...

5 months ago | 0

Answered
cell配列のをcsvで保存する方法
3行目の数値配列をばらしてもいいですか?tableにしてwritetableを使うのがよさそうです。 clear TEST for i = 1:3 TEST{1,i} = strcat('test',num2str(i)); end fo...

6 months ago | 1

| accepted

Answered
Image Segmentation of human skin
I could show a result, though I'm not sure this meets you. The strategy is simple. First, non-skin (air?), shallower skin (bluis...

6 months ago | 1

| accepted

Answered
How to automatically introduce a nested layer of for-loop?
Hi, This is a possibility: N = 4; % the loop number X = rand(1,3); % simulated X products = ones(ones(1,N)*3); reshape_arr...

6 months ago | 1

| accepted

Answered
Percentage of time of a time series
How about using diff function to your time vector data? The following is an example. The details need to be modified. % time_ve...

6 months ago | 0

Answered
変数の作成について
eval関数を使う方法があります。eval関数は中に入れた文字列が、あたかもコマンドとしてそのまま実行されるものです。 TEST = 'set'; A = 1; command = [TEST, ' = A']; % 'set = A' eval(...

6 months ago | 2

| accepted

Answered
How to giving same group of number on image using bwlabel?
How about using bwlabeln or bwconncomp? They can apply to 3-dimensional data.

6 months ago | 0

Answered
Normalization of gradient image
For the case using sobel kernel, multiply 1/8 to the resulted values: [Gmag,Gdir] = imgradient(I, 'sobel'); Gmag_normalized = ...

6 months ago | 0

| accepted

Answered
Azimuth data: Colormap wrapping when performing interpolation
As you noticed, phase is discontinuous function. One can convert this to the continuous function, for example, by using cosine a...

6 months ago | 0

| accepted

Answered
load関数に使うファイル名
load(sprintf('inv#%3d.mat',n)) ではどうですか?

6 months ago | 1

| accepted

Load more