Community Profile

photo

Hiro Yoshino

MathWorks

Last seen: Today Active since 2019

DISCLAIMER: Any pieces of advice or opinions posted here are of my own, and in no way reflect that of MathWorks.

Statistics

All
  • MATLAB Flipbook Mini Hack Participant
  • Thankful Level 1
  • Knowledgeable Level 5
  • Promoter
  • Solver
  • Personal Best Downloads Level 1
  • 5-Star Galaxy Level 1
  • Pro
  • GitHub Submissions Level 1
  • First Submission
  • 6 Month Streak
  • First Review

View badges

Content Feed

View by

Answered
2重入れ子構造がある場合の線形混合効果モデル式の表記はどうすれば良いでしょうか
式と計画行列の関係 が参考になるかと思います。 階層構造が相関を表しているとして、A > B > C で、A-B の交互作用、B-C の交互作用をモデル化するのであれば、(* | A:B) のように指定することが出来ます。

16 days ago | 0

Answered
分類器アプリ内の散布図を自分で作る方法を教えてください
scatter 関数かなと思いますが、いかがでしょうか?: a = rand(20,2); b = rand(20,2); scatter(a(:,1),a(:,2)); hold on scatter(b(:,1),b(:,2)); lege...

1 month ago | 1

Answered
特徴診断デザイナーで特徴量を抽出したのですが,変数名がどんな特徴を表しているのかわかりません.
https://jp.mathworks.com/help/predmaint/ref/diagnosticfeaturedesigner-app.html こちらから、"時間領域の特徴"、"時間-周波数領域の特徴" を見ていただければ、特徴量の定義 (...

1 month ago | 0

| accepted

Answered
ガウス過程回帰fitrgpで過学習を防ぐ方法
GP ではカーネルがモデルの細かさを決めるので、このあたりを調整すると過学習を抑制することができると思います。CV で最適なパラメータを見つけると良いと思います。 回帰学習機アプリ の中では、このようなハイパーパラメータの最適化も行ってくれるので、コード...

4 months ago | 0

| accepted

Answered
Finding source files for Mathworks demo example
From "Copy Command" button, you can copy the following code to run: openExample('autonomous_control/AutonomousEmergencyBrakingW...

4 months ago | 0

Answered
How execute ipython jupyter code inside MATLAB?
You can use pyrunfile to run a python file in MATLAB. Your arguments can be given to the command too.

4 months ago | 0

Answered
フィルターの設計方法について
Live Task からフィルタを設計すると簡単ですよ。凝ったものでなければここで、カットオフでの特性や遅延等についても評価することができると思います。 線形位相応答を必要とする場合には、FIR フィルタが良いかと思います。IIR フィルタは動作が速く、...

6 months ago | 1

| accepted

Answered
一次式によるベースライン補正について
面積の補正が必用ということで、いただいたコードを少し変えてみました。 利便性を考慮して最初のデータでも動作するようにしました。y が before, y2 が after です。 % Original data x = (1:36)'; y = [...

7 months ago | 0

| accepted

Answered
一次式によるベースライン補正について
回転角を考えて、全体のデータを回転させると良いかと思います。 元のデータ x = 0:0.1:36; y = -1.97*x + 116.08; plot(x,y,'b:'); 回転させます theta = 2 * (pi/2 - atan(-...

7 months ago | 0

Answered
Why peepholeLSTMLayer implemented in a tutorial is much slower than built-in lstmlayer?
I suppose that is because the implementation of interest is a custom model while the built-in LSTM is optimized for computation....

7 months ago | 0

Answered
変数名に対応した規則性のあるベクトルの作成と ベクトルの結合
文字のまま残すのは、symbolic math などを使われると良いかと思います。 (私がやろうとしたら上手く出来なかったので、ここでは行列の作り方だけお示しします) n = 10 i = (1:(n-1)/2) % 行ベクトル j = (0:(n...

7 months ago | 0

Answered
for文の書き方について
アイディアを2つお渡しします: [1] cell 配列を使って情報を保存すると楽かなと思います。 それと、string ベクトルの結合ですが、"i" が数値なのでそのまま結合出来ないと思います。num2str で変換しておきます。 app.Btn...

7 months ago | 0

| accepted

Answered
アニメーションの途中でグラフィックを回転させるにはどうすればよいですか?
rotate が使えるかも知れません。 また、 plot(randn(100,1)); h=zoom; set(h,'Motion','horizontal','Enable','on'); zoom(5.0) なども良いのでは?

7 months ago | 0

Answered
AppDesignerの画面上に置いてあるフォームやスライダーの値をリセットや復元できるボタンを置きたい
私ならですが アプリを閉じる時に変数を保存する callback を入れる (右クリックから closeRequestFcn を選択 参考) そこに格値を mat ファイルに保存する様にする (save コマンド ) a = app.a; b = ...

7 months ago | 1

| accepted

Answered
点群データから等高線を作成して、面積を集計する方法
データ、コードを一緒に入れていただくと、回答者が取り組みやすくなります。 こんな感じで入れてみては? x = randn(100,1); y = randn(100,1); z = randn(100,1); scatter3(x,y,z); ...

7 months ago | 0

| accepted

Answered
How to display pi symbol in the output?
How about this? S = sprintf('Zak Phase of 0th band = %c',960); disp(S);

7 months ago | 0

Answered
How to upgrade Matlab Web App server from 2022a to 2023a
Here is the link to the series of command required. Then take actions as follows: Stop the current running server first (using ...

9 months ago | 0

Answered
how do I fit a Raman spectrum that has multiple peaks using Gaussian bands?
How about trying GMM? https://jp.mathworks.com/help/stats/fitgmdist.html This is a standard way to estimate multiple gaussian ...

9 months ago | 0

| accepted

Answered
検証損失が下がらない
結果だけを見ると、 学習データと 検証データの分布が異なる ように思えます。データが少ないと思いましたが、学習データはどのくらいありますか?

10 months ago | 0

| accepted

Answered
Using problem based optimization to control a system
It seems that it simply found a local optimum. If this is not the one that you expected, you should change the intial values. Tr...

10 months ago | 0

Answered
Can I use parfeval in App Designer to plot to a UIAxes while the code keeps running?
As for the 1st question, are you familiar with "Object Oriented Programming"? You should write your code in an OOP manner in th...

10 months ago | 1

Answered
Power spectral density plot converted to sound pressure level
The simplest way is this; try the following code without receiving the result from the function: pwelch(det_data, window, overl...

10 months ago | 0

Answered
Error using ' TRANSPOSE does not support N-D arrays. Use PAGETRANSPOSE/PAGECTRANSPOSE to transpose pages or PERMUTE to reorder dimensions of N-D arrays.
I could reproduce the same error message as follows: X = rand(3,3,4) transpose(X) The best bet is replace this with pagetra...

10 months ago | 0

Answered
回帰学習器アプリで複数の応答で学習させたい
アプリからは実行できないので、一度アプリで学習をしたら エクスポート > 関数の生成 とすれば、学習に必用なコードが出てきます。 ( こちらが参考になる ) この関数に対して、response を別の物を与える様にコードを書き換えてあげれが、仰るこ...

10 months ago | 0

Answered
Retrieve phase from a time-varying cosine signal
I would suggest that you should try hilbert transform as follows: load("data.txt") plot(data(:,1)) hold on plot(data(:,2)); ...

10 months ago | 0

| accepted

Answered
How to calculate wavenumber, for fft2 of a 2D array?
We use "normalized frequency" with FFT and this is a linear transformation between the time space and the frequency space. So th...

10 months ago | 1

| accepted

Answered
using copyfile to copy the FOLDER AND its CONTENTS, i.e., preserve the folder
Why don't you use system command instead? You can use the linux commands as you wish. system("touch myFile.txt") % create myFi...

10 months ago | 0

Answered
MATLAB tutorials:MATLAB Fundamentals may have a wrong answer
I do not think you are right. ylabel (find the link here) is not a variable but a command. So you do not need to clear it unles...

10 months ago | 0

| accepted

Answered
Removing rows except containing certain numbers of "33"
You should use "pattern" to detect what you want in the strings as follows: Your data: x = [103 133 1133 1344 332 105 1105 15 ...

10 months ago | 0

| accepted

Answered
Why do I keep getting this error in my app designer?
(1) This might be irrelevant ... You should change "ans" to something else since ans is already taken. (2) strcmp, "string" is ...

11 months ago | 0

Load more