Answered
特定の文字列を含むセルのインデックスを見つけるにはどうしたらよいですか?
セル配列内の各要素のテキストに「bla」が含まれているかを検索したいのか、それとも要素が正確に「bla」であるものを探したいのかによって、答えが異なります。この詳細を説明していただけると、質問への回答が容易になります。 テキストの一部として「bla」を検索...

2 years ago | 0

| accepted

Question


特定の文字列を含むセルのインデックスを見つけるにはどうしたらよいですか?
40,000x1のセル配列があり、各セルには文字列が含まれています。特定の文字列を含むセルのインデックスを見つけたいです。以下のように試しましたが: Index = strfind(Mycellarray, 'Bla'); 次のエラーが発生します: E...

2 years ago | 1 answer | 0

1

answer

Answered
配列内の要素のインデックスを見つけるにはどうしたらよいですか?
整数配列の中で特定の整数値のインデックスを見つけるには、"find"関数と==演算子を使用します。例えば、整数値の1次元11要素ベクトル内で値が5と等しい要素のインデックスを見つけます。 x = 0:1:10; k = find(x == 5); 浮動小...

2 years ago | 0

| accepted

Question


配列内の要素のインデックスを見つけるにはどうしたらよいですか?
配列Xに要素として数字の5を持っていることはわかっていますが、そのインデックスがわかりません。MATLABには、Pythonの「index」メソッドに類似した要素のインデックスを見つけるためのビルトイン関数がありますか?

2 years ago | 1 answer | 0

1

answer

Answered
MATLAB の図からデータを抽出するにはどうすればよいですか?
この例では、MATLAB の図からデータを抽出する方法を説明します。図がファイル(例えば、'example.fig')として保存されている場合は、'openfig'を使用して図ファイルを開き、Figure オブジェクトを変数'fig'に割り当てます。 f...

2 years ago | 0

| accepted

Answered
既にコンピュータにMinGWがインストールされています。これをMATLABで使えるように設定するにはどうすればよいですか?
MATLABは環境変数「MW_MINGW64_LOC」を読み取ることでMinGWコンパイラを検出します。以下の手順に従って、この環境変数を手動で設定してください。 注意: 以下の手順を実行する前に、現在のMATLABバージョンに対する「MATLAB Sup...

2 years ago | 0

| accepted

Question


既にコンピュータにMinGWがインストールされています。これをMATLABで使えるように設定するにはどうすればよいですか?
既にコンピュータにMinGWがインストールされています。これをMATLABで使えるように設定するにはどうすればよいですか?

2 years ago | 1 answer | 0

1

answer

Answered
セルを倍精度実数に変換するには?
文字ベクトルのセル配列を数値に変換するには、str2double関数を使用するのが最も簡単な方法です。 C = {'0.000000'; '10.000000'; '100000.000000'}; M = str2double(C); cell2mat...

2 years ago | 0

| accepted

Question


セルを倍精度実数に変換するには?
例えば、aが以下のような11x1のセル配列であるとします。 a = '0.000000' '1.000000' '2.000000' '3.000000' '4.000000' '5.000000' ...

2 years ago | 1 answer | 0

1

answer

Question


1x1のセルを文字列に変換するにはどうしたらよいですか?
{'line'}のような1x1のセルを、'line'のような文字ベクトルや、"line"のような文字列に変換する方法を教えてください。

2 years ago | 1 answer | 0

1

answer

Question


MIL、SIL、PIL、HILとは何であり、モデルベースデザインアプローチとどのように統合されますか?
MIL、SIL、PIL、HILとは何であり、モデルベースデザインアプローチとどのように統合されますか?

2 years ago | 1 answer | 0

1

answer

Answered
凡例で項目をスキップする方法は?
R2021a以降では、対応するラベルを空の文字ベクトルに設定することで、凡例から項目を除外できます。例えば、3本の線をプロットし、legend関数を呼び出して2番目の凡例ラベルを空の文字ベクトルとして指定します。対応する線は凡例から省かれます。 plot...

2 years ago | 0

| accepted

Question


凡例で項目をスキップする方法は?
凡例で項目をスキップするにはどうすればよいですか?例えば、6つのプロットがあり、3つは実際の値で、3つは補間曲線です。実際の値の曲線だけをラベル付けしたいのですが、 legend('first', '', 'second', '', 'third') で...

2 years ago | 1 answer | 0

1

answer

Answered
Y軸を対数スケールに設定するにはどうしたらよいですか?
最良の方法として、semilogy関数をお勧めできます。あるいは、軸のYScaleプロパティを設定することもできます: set(gca, 'YScale', 'log') Mathworksサポートチームからの更新 - 2023年9月 R2023b以降で...

2 years ago | 0

| accepted

Question


Y軸を対数スケールに設定するにはどうしたらよいですか?
plot関数を使ってx-yプロットをしています。x軸は線形で、y軸のみを対数スケールに設定したいです。どうすればいいですか?loglog関数を使ったのですが、両方の軸がスケールされてしまいます。Y軸だけを変更したいです。

2 years ago | 1 answer | 0

1

answer

Answered
異なる線幅で線をプロットするにはどうしたらよいですか?
異なる線幅で2本の線をプロットするには、以下のいずれかの方法を使用できます。 1.plot関数から2つの「Line」オブジェクトを出力引数として返し、それぞれのLineWidthプロパティを設定します。 p = plot(x1, y1, x2, y2);...

2 years ago | 0

| accepted

Question


異なる線幅で線をプロットするにはどうしたらよいですか?
次のようにプロットしたいのですが: plot(x1, y1, x2, y2, 'LineWidth', 8) LineWidthプロパティが両方の線に適用されてしまいます。線1と線2で異なる幅にするには、hold onコマンドを使って2つのプロット関数を...

2 years ago | 1 answer | 0

1

answer

Question


Figure のサイズを変更するにはどうしたらよいですか?
Figure のサイズを変更しようとしています。以下の例では、figure(2)のサイズを変更することを期待していました。そのために次のコードを追加しましたが、うまくいきません。なぜでしょうか? set(gcf, 'PaperUnits', 'inche...

2 years ago | 1 answer | 0

1

answer

Question


MathWorks製品をインストールする際に「すでに製品がインストールされています」と表示されるのはなぜですか?
MathWorks製品をインストールする際に、以下の警告が表示されるのはなぜですか? 「すでに製品がインストールされています: 選択したすべての製品はすでにインストールされています。」 

2 years ago | 1 answer | 0

1

answer

Answered
コマンドウィンドウにメッセージを表示するにはどうしたらよいですか?
コマンドウィンドウにテキストを表示するためには、dispまたはfprintfを使用します。以下のように記述してください。 disp('job done') または fprintf('job done\n') dispは簡単に文字列を表示するための関数で...

2 years ago | 0

| accepted

Question


コマンドウィンドウにメッセージを表示するにはどうしたらよいですか?
プログラムを書いています。コマンドウィンドウに「job done」というメッセージを出力として表示したいのですが、どのようにすればよいでしょうか?

2 years ago | 1 answer | 0

1

answer

Question


How does "polarplot" handle points with radius less than the the lower radial limit set using the "rlim" function in MATLAB?
I am using MATLAB R2023b to plot rings on a polar plot by using the "polarplot" function.  I have used the "rlim" function to se...

2 years ago | 1 answer | 0

1

answer

Answered
Why do I receive a ' Error C1189 #error: -- unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported!' error in the CUDA 'host_config.h' file when trying to compile CUDA code with GPU Coder?
The cause of this error is an update to Visual Studio 2017 that breaks support for CUDA. Please note that Microsoft does not gi...

2 years ago | 0

| accepted

Answered
Why do I get a channel mismatch error between predictions and targets when using "trainnet"?
This issue arises due to a mismatch between the expected format of the target data and what is provided to the "trainnet" functi...

2 years ago | 0

| accepted

Question


Why do I get a channel mismatch error between predictions and targets when using "trainnet"?
I am trying to train a neural network using the "trainnet" function. My setup involves splitting a dataset into training and tes...

2 years ago | 1 answer | 0

1

answer

Answered
What dependencies are needed to install MATLAB on "minimal" or "core" Linux installations?
MATLAB and Simulink are validated on standard installations of the distributions listed on our system requirements page: MATLAB ...

2 years ago | 3

| accepted

Answered
How can I set the Vendor for an IP Core generated by HDL Coder?
It is currently not possible to specify the IP Core vendor in MATLAB/Simulink. The development team is aware of this enhancement...

2 years ago | 1

| accepted

Answered
Why does the check "db_0129: Stateflow transition appearance" violate even when I do not have any transition lines overlapping with other objects in my Stateflow Chart in MATLAB R2022b Model Advisor?
To resolve this issue, please ensure that you don't have any empty annotation blocks that may be overlapping with the transition...

2 years ago | 0

| accepted

Answered
How can I get a thermal-infrared image preview when acquiring from a FLIR IR camera with Image Acquisition Toolbox?
The following MATLAB example code enables the full bit depth mode for camera preview, and specifies a jet colormap for the previ...

2 years ago | 1

| accepted

Answered
How do I handle round-off errors in my MATLAB code?
Round-off errors demonstrates a fundamental problem with the way computers deal with fractional numbers. Some numbers (in fact, ...

2 years ago | 3

| accepted

Load more