回答済み
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ヶ月 前 | 0

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

11ヶ月 前 | 1

| 採用済み

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

11ヶ月 前 | 1

| 採用済み

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

11ヶ月 前 | 1

| 採用済み

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

12ヶ月 前 | 1

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

12ヶ月 前 | 1

回答済み
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...

12ヶ月 前 | 3

| 採用済み

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

約1年 前 | 3

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

約1年 前 | 0

| 採用済み

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

約1年 前 | 0

| 採用済み

回答済み
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...

約1年 前 | 1

回答済み
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...

約1年 前 | 1

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

1年以上 前 | 0

回答済み
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 ...

1年以上 前 | 0

| 採用済み

回答済み
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...

1年以上 前 | 0

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

1年以上 前 | 0

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

1年以上 前 | 2

| 採用済み

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

1年以上 前 | 0

| 採用済み

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

1年以上 前 | 0

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

1年以上 前 | 0

回答済み
Does syntax checking support undefined variables?
MATALB automatically identifies problems. Debugging features help you diagnose specific issues, see as follows : Debugging and...

1年以上 前 | 1

回答済み
Save .fig and .jpg to folders selected earlier
I would add some more code in the MatlabFigureSaveLocationButtonPushed function as follows: saveFileName = "myFileName"; savef...

1年以上 前 | 1

回答済み
the error of 'Matlab can only run a file with a valid name'
Please make sure you have that file on the PATH or in the current working directory. In the case the file exist somewhere else ...

1年以上 前 | 1

回答済み
Grad-CAMで「リダクション層の活性化の勾配がすべてゼロです」とエラーがでますが、どう対処すればよいでしょうか?
gradCAM(net,x,categorical) の部分の、categorical を何か指定されていますか? 分類問題かなと思いますが、クラスラベルを指定してください gradCAM(net,x,"cat") 因みに、cellfun 無しでデー...

1年以上 前 | 1

| 採用済み

回答済み
LSTMネットワークが過学習を起こしているときの対応
<< 過学習について>> 過学習というのは、"ここにあるように" 訓練誤差が小さくなって行き、汎化誤差が大きくなっていっている状態を指します。状況について一般的な解釈をここではさせていただきます: 損失値が小さくなり、その後横ばい: 学習が進んでいませ...

1年以上 前 | 0

回答済み
while and for loop
Let me remove the original idea as I did not think it was a homework ... sorry. input("msg") is useful. You can use it.

1年以上 前 | 0

回答済み
Pressure Intensifier, The example shows how to model, parameterize, and test a pressure intensifier in examples section of simulink
Of course yes. Why don't you try this: which sscfluids_pressure_intensifier -all If this returns the path to the code, it mea...

1年以上 前 | 0

回答済み
I want to plot selected data from rows and columns
Let me use the ulr info like @KSSV @Torsten did!! Here you are: data = readtable("https://www.mathworks.com/matlabcentral/answ...

1年以上 前 | 0

回答済み
Pressure Intensifier, The example shows how to model, parameterize, and test a pressure intensifier in examples section of simulink
I wonder if you have the corresponding Toolbox; in this case it is Simulink Fluid. Check and see if Simulink Fluid is available...

1年以上 前 | 0

回答済み
学習曲線において精度の意味
恐らく悩んでいるポイントは、時系列のデータを"全部並べて学習する"のと、"分けてそれぞれ学習する" ことで結果が異なるのは何故なのか?という事だと思うんですが、それで良いですか? そうだと仮定して、2つの場合で比較します: [全部並べて学習する] ...

1年以上 前 | 3

| 採用済み

さらに読み込む