Answered
How can I recognize an empty row in the middle of an Excel file?
How about the following way? The Solution-1 and -2 returns the same result. T = readtable('BF1.xlsx'); % Solution-1: S...

7 years ago | 1

| accepted

Answered
How to access struct fields within cell array?
Then, how about the following? After running this, |A| is 100-by-50 numeric array where A(i,j) = Bigcellarray{i}{j}.field C...

7 years ago | 2

Answered
How to save hexadecimal matrix in txt file?
You can use low-level file I/O to do that. The following is a simple example. % Write to text file A = {'B3' 'B7' 'B5' 'A9...

7 years ago | 0

Answered
Mean of nested cell arrays
How about the following? The result |out| is 10-by-1 array. - out(1) is mean of cv_perf{1}{1}(1) ~ cv_perf{10}{1}(1) - out...

7 years ago | 0

Answered
How to aggregate data on seasonal basis?
You can do that by setting new time vector as the 2nd input variable of |retime| function, like: t2 = [datetime(1980,12,1):...

7 years ago | 2

| accepted

Answered
datetime配列と数値配列の列方向を結合する方法
datetime型と数値配列ではデータ型が異なるため、tableとして両方を保持するのが良いかと思います。 Time = [datetime(2018,6,20):days(1):datetime(2018,6,29)]'; Value = r...

7 years ago | 2

| accepted

Answered
how to calculate the area from those charts?
Regarding 2D area, you can use <https://jp.mathworks.com/help/matlab/ref/trapz.html?lang=en trapz> or <https://jp.mathworks.com/...

7 years ago | 1

| accepted

Answered
画像からある範囲の平均輝度値を取得する方法
例えば以下のようにすると、 |regionprops| 関数でそれぞれの円領域に含まれるピクセルの位置情報を取得したうえで、その情報を使って円ごとの輝度の平均値を算出することができます。 % Read image and convert to g...

7 years ago | 1

| accepted

Answered
How to complile data with two different time steps
Like this? % Arrange your data to tables time1 = [0.0 0.2 0.4 0.6]'; exp1 = [110 123 126 128]'; time2 = [0.1 0.2 0.3 0...

7 years ago | 1

| accepted

Answered
Find coordinate of a point and place them in circular form
As Walter-san mentioned, it sounds like |iradon| function. But seems not applicable this function directly. The following is my ...

7 years ago | 1

| accepted

Answered
3次元グラフの作成
|plot3(e1,e2,Q1)| を実行するには、エラーメッセージにあるように、e1, e2, Q1 を同じサイズの1次元配列にする必要があります。とりいそぎ、以下2点の修正でプロットできることを確認しました(ちなみに以下はあくまで応急処置ですので、e1...

7 years ago | 2

| accepted

Answered
How to extract the values of two datasets from the same date/time from two table ?
Looking at your data, year-month-day and hour-minute-second information are stored in different columns. In addition, data forma...

7 years ago | 1

| accepted

Answered
How to plot a hyperbolic equation?
The following is a simple example to plot your equation. x = linspace(-10,10); y = 211.49-20.96*cosh(0.03291765*x); f...

7 years ago | 0

Answered
switch column of table
If you have the latest version (R2018a), you can simply do it by |movevars| function, like: yourTable = movevars(yourTable,...

7 years ago | 7

| accepted

Answered
Expand to find inner boundary of object
I've just come up with a good idea. How about clustering data points into 2 groups based on distance from the center point to ea...

7 years ago | 3

| accepted

Answered
How do I darken a certain part of the image?
One possible solution would be like this: % Read the file and convert to gray-scale image I = imread('b.jpg'); Igray = rg...

7 years ago | 0

| accepted

Answered
How to count blobs with a given threshold in an image
One possible solution would be like this: % Read sample image I = imread('coins.png'); % Threshold th = 100; % ...

7 years ago | 0

| accepted

Answered
Detect and Fill Edges of a Binary Image
Assuming that the inner/outer ring can be approximated by the edge of convex hull of inner/outer ring points, the area between i...

7 years ago | 0

| accepted

Answered
How to add row and column labels to matrix?
OK. Then, how about the following? I believe it will be applicable to 135-by-135. % Sample data x = rand(4); label = {'he...

7 years ago | 1

Answered
三次元で、ある座標からある座標に矢印を引きたいです。
|quiver3| 関数を使う以下の方法では如何でしょうか。 p0 = [0,0,0; 1,0,0; 0,1,0; 1,1,0]; % 始点の座標 p1 = [0,0,1; 1,0,1; 0,1,1; 1,1,1]; % 終点の座標 v = ...

7 years ago | 2

Answered
How to get cumulative sum in yearly buckets
How about the following ? % Read the data file and delete the answer column opts = detectImportOptions('Reset Accum temp.x...

8 years ago | 1

| accepted

Answered
How to replace different variables with a single variable in a text file?
Here is a simple example on how to use |regexprep| to replace '=','+','-' with '%'. strIn = 'Please replace multiple set of...

8 years ago | 0

| accepted

Answered
For 2 curves, how to have xticks on both the above and below of x-axis?
The following is one way to do that. Please see the following link for more details. <https://jp.mathworks.com/help/matlab/cr...

8 years ago | 1

Answered
How do I cut out the white border in this binary image, but keep the rest?
Another possible way is to use |bwconvfull| function, like: % Read and binarize the image I = imread('inTT.png'); BW = im...

8 years ago | 1

| accepted

Answered
How to extract rows by date?
It's not clear what you want to do, but, as Star-san mentioned, |retime| function would be your help. Let me start assuming you...

8 years ago | 0

| accepted

Answered
Determining months of each year
I would recommend converting your data set to 'timetable', and applying |retime| function. Assuming |dates| and |rainfall| are d...

8 years ago | 0

Answered
Why does resample lose values when applied to vector with NaN's?
The function |downsample| decreases the sampling rate by extracting every n-th sample. On the other hand, |resample| applies an ...

8 years ago | 0

Answered
error when using clabel(C,h)
Maybe you have closed your figure window before executing |clabel(C,h)|.

8 years ago | 1

Answered
find() isn't finding all the values in the array
This is due to floating-point accuracy. For example: >> interp_x_array(1079) ans = -22.2000 >> delta(1) ans = -22....

8 years ago | 0

Answered
Skipping row data repeatedly
Like this? % Sample data (size of 491520) data = rand(491520,1); idx = repelem([true;false],102); idx = repmat(idx,c...

8 years ago | 1

| accepted

Load more