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

11 Monate vor | 0

| akzeptiert

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

11 Monate vor | 0

| akzeptiert

Beantwortet
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 Monate vor | 0

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

12 Monate vor | 1

| akzeptiert

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

12 Monate vor | 1

| akzeptiert

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

12 Monate vor | 1

| akzeptiert

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

etwa ein Jahr vor | 1

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

etwa ein Jahr vor | 1

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

etwa ein Jahr vor | 3

| akzeptiert

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

etwa ein Jahr vor | 3

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

etwa ein Jahr vor | 0

| akzeptiert

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

etwa ein Jahr vor | 0

| akzeptiert

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

etwa ein Jahr vor | 1

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

mehr als ein Jahr vor | 1

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

| akzeptiert

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 2

| akzeptiert

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

mehr als ein Jahr vor | 0

| akzeptiert

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 1

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

mehr als ein Jahr vor | 1

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

mehr als ein Jahr vor | 1

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

mehr als ein Jahr vor | 1

| akzeptiert

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

Mehr laden