已回答
行列を連結して新たな行列を作る方法
行方向にAとBを交互にCに入力したいということですよね。例えば C = zeros(2*M,N); C(1:2:end,:) = A; C(2:2:end,:) = B; で実現出来ます。1:2:endは1から始まって終わりまで一個飛ばし、2:2:...

6 years 前 | 3

| 已接受

已回答
Excelから読み取った年月日の情報を区切り位置で分割する方法
例えば/(スラッシュ記号)で文字列を分割するとかですと strsplit関数 があります。この場合も使えるかと思います。

6 years 前 | 3

已回答
時系列データの整理方法と散布図の作成
返事が遅くなり申し訳ありません。 >Aの方は秒のデータを平均して、フン当たりのデータに変換した後にBとくっつけられれば理想です。可能でしょうか。 可能です。下記の関数を見てみてください。 https://jp.mathworks.com/help...

6 years 前 | 0

已回答
時系列データの整理方法と散布図の作成
データのフォーマットが違ったら教えてください。 とりあえず、[year month day hour min sec data]の順で数値の入った数値配列がお手元にあると仮定して進めます。 時系列データがわかりやすく順番通りに並んでいるので、そのままd...

6 years 前 | 1

已回答
Live Editorで、figureウィンドウをポップアップ表示したい
Live Editorで、figureウィンドウをポップアップ表示したいということでよろしいでしょうか。 set(gcf, 'visible', 'on')でポップアップ表示になります。 過去に同じ質問がありました。ご参考まで。 https://jp...

6 years 前 | 2

| 已接受

已回答
間隔と長さの異なるベクトルに依存する値の誤差を計算したい
1次元信号の内挿でしたらinterp1で行えます。 下のサンプルはsin波を異なる時間でサンプリングしたときの例となります。 t1 = sort(rand(1,20)).*2*pi; t2 = sort(rand(1,15)).*2*pi; y1 ...

6 years 前 | 2

已回答
Fill gaps using Nan in for loop
Hi Jaehwi, I wrote code. hope this helps. data = [0 50; 1 100; 2 200; 3 300; 5 500; 6 600; 7 700; 10 1000; 0 30; 2 20; 6 40;];...

6 years 前 | 0

已回答
Create colormap to represent value intervals [0 1]
Hi Fiona, how about labeling image? The following code is the example. %% image load img = double(rgb2gray(imread('coloredChi...

6 years 前 | 0

| 已接受

已回答
Need help moving files based on name
Hi Benjamin, you can pick up the filename with the specific day as the followings: for i = 1:30 % from 1st to 30th search...

6 years 前 | 0

已回答
How to solve the "Subscript indices must either be real positive integers or logicals." error.
Hi Naiara, The error occurs, since you use "dt" as an array, though it is a scalar. The problem is the first "dt" of each sente...

6 years 前 | 0

已回答
Counting number of same neighbourhood pixels between two matrices.
Hi Tan, If "similar" means "exactly the same" or "the difference is zero", it is not difficult to implement. What the following...

6 years 前 | 0

| 已接受

已回答
Image Processing B&W Picture Calculate Color Percentage
Hi Andar, this is the sample code. img = imread('cameraman.tif'); imshow(img); th = 100; % threshold to select brighter pixel...

6 years 前 | 0

已回答
imread による以下のプログラムで I_cr = imcrop(I, [125, 64, 536, 482]); で画像を切り抜き後 の処理で発生するエラー回避の方法
ちょっと試してみたのですが、ご提示のコードできちんと動きました。 もしかすると読み込んだ画像がRGB画像ではないでしょうか。 IがRGB画像だと同じエラーが出ました。必要なレイヤだけを取り出して(I=I(:,:,1)など)処理したところ、きちんと回りま...

6 years 前 | 0

已回答
二次元画像の二値化について
特定の範囲のマスク画像を作成した上で、下のような形で作成可能です。わかりやすくするために一つずつ作って、はめ込んでいますが、「2値化」セクションの3行を1行にくっつけていいと思います。 clear, clc, close all img = imrea...

6 years 前 | 0

| 已接受

已回答
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...

6 years 前 | 0

| 已接受

已回答
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 years 前 | 0

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

6 years 前 | 0

| 已接受

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

6 years 前 | 0

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

6 years 前 | 1

| 已接受

已回答
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...

6 years 前 | 0

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

6 years 前 | 0

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

6 years 前 | 0

| 已接受

已回答
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...

6 years 前 | 2

| 已接受

已回答
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. ...

6 years 前 | 0

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

6 years 前 | 0

| 已接受

已回答
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,...

6 years 前 | 0

| 已接受

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

6 years 前 | 2

| 已接受

已回答
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...

6 years 前 | 1

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

6 years 前 | 3

| 已接受

已回答
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 ...

6 years 前 | 0

加载更多