photo

Akira Agata

MathWorks

Last seen: Today Actif depuis 2016

Followers: 2   Following: 0

Statistiques

All
MATLAB Answers

0 Questions
855 Réponses

File Exchange

3 Fichiers

Cody

0 Problèmes
1 Solution

ThingSpeak

2 Public Chaînes

RANG
58
of 300 756

RÉPUTATION
3 328

CONTRIBUTIONS
0 Questions
855 Réponses

ACCEPTATION DE VOS RÉPONSES
0.00%

VOTES REÇUS
672

RANG
3 792 of 21 077

RÉPUTATION
399

CLASSEMENT MOYEN
5.00

CONTRIBUTIONS
3 Fichiers

TÉLÉCHARGEMENTS
9

ALL TIME TÉLÉCHARGEMENTS
2840

RANG
118 811
of 170 890

CONTRIBUTIONS
0 Problèmes
1 Solution

SCORE
20

NOMBRE DE BADGES
1

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
2 Public Chaînes

CLASSEMENT MOYEN
30

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • 5-Star Galaxy Level 4
  • GitHub Submissions Level 1
  • 36 Month Streak
  • Personal Best Downloads Level 2
  • Editor's Pick
  • First Review
  • First Submission
  • Guiding Light
  • Knowledgeable Level 5
  • Solver
  • Revival Level 2
  • First Answer

Afficher les badges

Feeds

Réponse apportée
uigetfile filter error with 2025a works fine in 2024b
For your purpose, the following syntax is correct and works in both MATLAB version: [infile, apploc] = uigetfile("*.txt", "Sele...

environ 2 mois il y a | 0

Réponse apportée
matrixから列ごとに要素を抽出する方法
eval 関数を使うことで実現できます。ただ、このヘルプページの「メモ」欄にもありますように、できれば避けたい方法でもあります。 代替案として、以下のように構造体のフィールドで分ける方法もありますが、いかがでしょうか? % 対象となる配列 D = r...

3 mois il y a | 0

Réponse apportée
Is it possible to make this tiny loop faster?
If you need to calculate this efficiently, I believe the following relationship can be utilized.

7 mois il y a | 2

Réponse apportée
forループを使わない方法
テプリッツ行列を作成する関数 toeplitz を使うとできそうです。 たとえば以下のような方法はいかがでしょうか?(ちなみに n と Phi_b は独立ではないため、以下では n を 1 としています) % d, Phi_b の一例 d = 3; ...

10 mois il y a | 2

| A accepté

Réponse apportée
Find index of cell values in another cell array without a loop
It's time to use ismember function! A = {'Q' 'W' 'E' 'R' 'T' 'Y' 'U' 'I' 'O' 'P'}; B = {'W' 'R' 'O'}; [~, index] = ismember...

environ un an il y a | 0

| A accepté

Réponse apportée
16進の文字列をstr2doubleで数に変換時に1桁目に「E」が混ざると処理できない
16進数の文字列を数値に変換するには、hex2dec をお使い下さい。 hex2dec('0x0E')

environ un an il y a | 1

| A accepté

Réponse apportée
有効グラフの経路の重みを合計する方法
allpaths 関数の第2出力引数として、経由するエッジの番号のリストが出力されます。これを使って経路内のエッジの重みを合計することができます。 たとえば今回対象となるグラフの1番目のノードから28番目のノードまでの全経路を allpaths 関数で求...

environ un an il y a | 1

| A accepté

Réponse apportée
distance of random points to coastline
If you can treat longitude and lattitude as X and Y, one straight-forward solution would be as follows. Of course, if you want ...

environ un an il y a | 0

| A accepté

Réponse apportée
メディアンフィルタ適用時特定の要素を除外する方法
関数 nlfilter を使って実現することができます。 たとえば 2次元配列 I に対して [9 9] の範囲で値が 0 の要素を計算対象外とした median フィルタ処理をするには、以下のようになります。 % 値が 0 の要素を計算対象外とした ...

environ un an il y a | 0

| A accepté

Réponse apportée
片対数グラフを立体に重ねたい
2番目のグラフを表示するところまでは既にできているという理解で間違いないですか? もしそうでしたら、以下を追加することで表示されたグラフの Y軸を対数スケールに変えることができます。 ax = gca; ax.YScale = 'log';

plus d'un an il y a | 1

Réponse apportée
Plotting a 3D surface plot from scatter plot
I would recommend the following step: Step1. Create mesh grid by using meshgrid function Step2. Interpolate the original data ...

plus d'un an il y a | 2

| A accepté

Réponse apportée
ありがとうございしました
imtool は画像の調査 (2点間の距離の計測やピクセルのRGB値確認など) をおこなうためのものですので、imtool のみでは作成することができません。 代わりに、以下のような使い方であればイタリアの国旗を作成することができます。 % 前準備: ...

plus d'un an il y a | 1

Réponse apportée
多変数関数の条件付き極致について
たとえば Optimization Toolboxを使って、以下のようにすると極大値を与える x,y を求めることができます(極小値も同様)。 % 最適化問題の作成 (極大値を求める場合) prob = optimproblem('ObjectiveS...

plus d'un an il y a | 0

Réponse apportée
MATLABフォルダにある大量のmlxファイルの中からある特定の関数の名前を検索して検索結果のリストを出す方法
ファイルの検索 機能をお使い頂くとご所望の検索が可能かと思います。

plus d'un an il y a | 1

| A accepté

Réponse apportée
配列を拡張する方法を教えて下さい
まさしく repelem 関数の出番です。 たとえば頂いた例だと、以下のようになります。 % 対象となる配列 A = [1 2; 3 4]; % それぞれの要素を繰り返す B = repelem(A, 2, 2); % 結果を表示 d...

plus d'un an il y a | 1

| A accepté

Réponse apportée
全データの列数を100個(100%に時間正規化)にするにはどうすればいいでか?
interp1 は複数の列に対して各列を一括で内挿できます。このため、以下のようにすると Thorax の各データを 100 行に正規化できます。 for kk = 1:numel(A.Thorax) data = A.Thorax{kk}; ...

plus d'un an il y a | 1

| A accepté

Réponse apportée
グラフの凡例を図面からはみ出さないようにしたいのですが
legend の NumColumnsプロパティを設定するのが良いかと思います。 ご参考までに、下記にその一例を示します。 figure gscatter(rand(100, 1), ones(100, 1), randi(30, 100, 1)) ...

plus d'un an il y a | 1

Réponse apportée
How to erase black letters in an image
How about the following? I = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1611496/image.jpeg'); Igra...

presque 2 ans il y a | 1

Réponse apportée
関数の計算について
J = meanLuminance + 15*sin((numfiles*pi)/776) の部分が原因です。 numfiles = 776 なので、上記の右辺第2項は 15*sin(pi) = 0 となるため、最終的には J = meanLumina...

presque 2 ans il y a | 1

Réponse apportée
同じ形式のファイルを読み込もうとするとエラーが出ます.
もしかすると 2 つのファイルの Delimiter の微妙な違いが影響している可能性があります (いずれも単純なタブ区切りではなく、半角スペースの連続で区切っているようです)。試したところ、readtable のオプションをより詳細に指定することで対応で...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
How to extract only the object and get the extreme coordinates?
How about the following? % Load the image I = imread('https://jp.mathworks.com/matlabcentral/answers/uploaded_files/1552757/20...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
テキストファイルにある値を区別したい
添付のテキストを拝見しましたが、標準的な構成ではないためやや工夫が必要です。 手っ取り早い方法としては インポートツール を使う方法があります。 別の方法としては、readtable でとりあえずデータ部分だけを読み込んで、整形や列名の設定はプログラム...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
画像の輝度を0~256で表すコード
単純に「はい」か「いいえ」で答えられないご質問ですので、順を追って説明します。 まず、対象画像がすべて 8 bit 画像の場合、画像は uint8 型の数値配列として読み込まれます。これを rgb2gray で変換すると同じく uint8 型の配列となる...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
bodeコマンドで作成したボード線図のX軸のラベルの単位を任意のフォントにする方法
findall でX軸のラベルのグラフィックオブジェクトを抽出することで変更可能です。 たとえば日本語環境では、デフォルトのX軸ラベルは「周波数 (rad/s)」になっていると思います。そこで以下のようにするとラベルの文字列やフォントを変えることが可能...

environ 2 ans il y a | 2

| A accepté

Réponse apportée
重心動揺の外周面積の求め方
凸包とその面積を求めるのでしたら、convhull 関数が便利です。使い方は以下の例を参考にして下さい。 % (x, y) 座標データ (※簡単のため20点としています) x = randn(20, 1); y = 2*randn(20, 1); ...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
陰関数の描画時において、(x,y)座標を変数にとりこみたい。
ImplicitFunctionLine の XData, YData プロパティは陰関数を描画した際に生成されます。 以下のようにすると、生成後の XData, YData を取得することができます。 % 陰関数を描画 figure h = fi...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Excelシート上のデータが読み込めない
MATLAB R2023bでは以下のように問題なく読み取ることができました。 お使いの MATLAB バージョンはどれになりますでしょうか? filePath = "https://jp.mathworks.com/matlabcentral/answ...

environ 2 ans il y a | 0

Réponse apportée
Crop a specific area for the sem image
How about the following? % Read the image I = imread("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1522566/i...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
plot data points on a map
How about the following? data = readmatrix("https://jp.mathworks.com/matlabcentral/answers/uploaded_files/1515856/plot_map2.csv...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How do I change the type of colorbar for each tiled figure?
You can set colormap for each axes object, like: % sample data z = peaks(20); % display the data with different colormap t...

environ 2 ans il y a | 0

Charger plus