Community Profile

photo

Hiro Yoshino

MathWorks

Last seen: Today Attivo dal 2019

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

Statistiche

All
  • 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
  • Revival Level 2

Visualizza badge

Content Feed

Visto da

Risposto
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...

circa 23 ore fa | 0

Risposto
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...

circa 23 ore fa | 1

Risposto
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...

4 giorni fa | 0

Risposto
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...

4 giorni fa | 0

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

5 giorni fa | 0

Risposto
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)); ...

11 giorni fa | 0

| accettato

Risposto
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...

11 giorni fa | 1

| accettato

Risposto
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...

12 giorni fa | 0

Risposto
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...

12 giorni fa | 0

| accettato

Risposto
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 ...

12 giorni fa | 0

| accettato

Risposto
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 ...

24 giorni fa | 0

Risposto
fit, lsqcurvefit, fitnlm, nlinfitにはどういった差異があるのでしょうか?
それぞれ共通点もありますが、異なる部分もあるという感じです。 ご自身の目的によっては、どれで実行しても同じという場合はあるかと思います。 fit - 与えたモデルに合わせて、関数がフィッティングされます。非線形なモデルでしたら裏では lsqcurv...

circa un mese fa | 1

| accettato

Risposto
Curve Fitting Toolbox(曲線フィッター)におけるNonlinearLeastSquaresの計算内容
fitoption の解説を見てみてください: https://jp.mathworks.com/help/curvefit/fitoptions.html Algorithm の指定ができ、近似手順で使用するアルゴリズム から Levenberg-...

circa un mese fa | 1

| accettato

Risposto
Curve Fitting Toolbox コマンドラインによる座標軸の範囲と目盛り設定について
Curve fitting app >> エクスポート >> Figure にエクスポート 後だと思って以下を見てみてください。 x = -1:0.1:3; y = cos(x); plot(x,y); グラフィックスオブジェクトを探して、プログ...

circa 2 mesi fa | 1

| accettato

Risposto
HomeEdition Matlab2022b pidtoolが起動しない。
pidtool は削除されました。pidTuner を使ってみてください https://www.mathworks.com/help/control/ref/pidtuner.html?searchHighlight=pidtuner&s_tid=sr...

circa 2 mesi fa | 1

Risposto
matファイル(v7.3)をpythonで開く方法を教えて下さい
MATLAB Engine を Python で利用するのはどうでしょうか? (推奨の MATLAB - Python 連携方法になります) MATLAB で **.mat としてデータを保存 MATLAB Engine を使って Python から ...

circa 2 mesi fa | 1

Risposto
Solving for unknown matrix X
I would use a pesudoinverse: A = [6 4;6 1; 1 2; 6 4] B = [8 8 6 7 5; 8 8 1 6 0; 1 4 3 8 7] C = [18042 21288 10716 22446 129...

2 mesi fa | 3

| accettato

Risposto
データに対して正弦波で近似を行いたい
初期値設定に問題があるのかなと思います。 アプリで実行しているのは、基本的には @Akira Agata さんと同じ方法なので (最小二乗法)、アプリの初期値を見直してみましょう。 アプリ > 詳細オプション > 係数の制約 から開始点 (初期値...

4 mesi fa | 3

Risposto
画像サイズと形式を指定して保存する方法と、コード内変数を変化させて連番で画像を保存する方法について
(1) 一番簡単な方法は、保存したいプロットにカーソルを合わせるとファイルに保存できるアイコンが出てくるのでそこから保存する。プログラミング的にやりたければ、 p1 = subplot(3,1,1); xP = 1e6.*xD; yP = 1e6...

4 mesi fa | 0

| accettato

Risposto
二値化画像での大きいノイズの削除
こんな感じでどうでしょうか? I = imread("DSCF0009.JPG"); imshow(I) %トリミング I_Trim = imcrop(I,[0 0 3072 1500]); imshow(I_Trim) %しきい値のローカ...

5 mesi fa | 0

| accettato

Risposto
How to clear workspace from a function?
You should understand Base and Function Workspaces. Note that they are different. One way you can delete variables from the Fun...

5 mesi fa | 1

Risposto
what is the matlab code for ploting dispersion against wavelength (for chromatic dispersion)?
You can use gradient to calculate this problem numerically. Let me use SiO2 as an example. data = readtable("SiO2.txt"); lamb...

5 mesi fa | 1

Risposto
畳み込みニューラルネットワーク(CNN)を用いて、画像から画像を生成するにはどうすればよいのでしょうか?
trainNetwork の response を見ると、イメージ回帰の response として h x w x d x c x N の 数値配列を指定することが可能なようです。 >以下のMATLABの例を用いて、[images, digits, an...

5 mesi fa | 0

Risposto
How to plot the signal having convolution in frequency domain?
Look like you are dealing with the equations symbolically - I wonder if this is what you really want to do.. anyway. Note this ...

5 mesi fa | 0

| accettato

Risposto
What code can I use to get a signal from the image?
Taks this as an example. im = imread("coins.png"); imshow(im); if you want to convert the matrix into either row or column ve...

5 mesi fa | 0

Risposto
fitnlmでのサイズ不一致によるエラーについて
fitnlm の modelfun の解説を読むと分かる通り、modelfun は入力次元数を持つ列ベクトルを返すように設定しなくてはいけません。つまり modelfun(b,x) の引数 x の次元が n であったら、(nx1) の出力を返すように設定し...

5 mesi fa | 0

Risposto
R2018bで使用できていたアプリを、R2020bでも使用するためにはどうすればよいか
R2022a で コード互換性アナライザー というアプリがリリースされたので、これが一番楽かなと思いますが、R2020b 以前の機能でも同じようなことができます。codeCompatibilityReport や CodeCompatibilityAnal...

6 mesi fa | 2

| accettato

Risposto
数値2重積分で発生する”配列のサイズがこの演算に適合しません”がなぜ発生するのですか?
無名関数の所かなという気がします: 12 = integral2(@(u1,u2) (g12(u1,u2).^2),0,1,0,1); なら上手く行くとかないでしょうか?

6 mesi fa | 0

| accettato

Risposto
指定のテキストファイルを生成する方法
ひょっとしたらもう少しスマートな方法が有るかも知れませんが.... % データの用意 N = 10; X = rand(N,1,"like",1i+1); data(1:N,1) = real(X); data(1:N,2) = imag(X) ...

6 mesi fa | 0

Risposto
fitrnetの学習反復回数について
ニューラルネットワークの学習は過学習を防ぐ為に、早期打ち切りを行います。デフォルトでは、6回検証の損失を上回ると過学習と判定して、以降の無駄だと考えられる学習を打ち切ります。 もし上限まで実行したいのであればこの6回を増やせば良いという事になります。Va...

6 mesi fa | 0

Carica altro