Answered
Is there a MATLAB function that can check if a field exists in a MATLAB structure?
There is no MATLAB function that examines every level of a structure of structures, or nested structure, to determine if a field...

2 years ago | 36

| accepted

Answered
MATLABでテーブルの列名を抽出するにはどうしたらよいですか?
「table」オブジェクトについて: 以下のようにテーブルを作成した場合を考えます。 LastName = ["Sanchez"; "Johnson"; "Li"; "Diaz"; "Brown"]; Age = [38; 43; 38; 40; 49]...

2 years ago | 0

| accepted

Question


MATLABでテーブルの列名を抽出するにはどうしたらよいですか?
MATLABで特定のテーブルの列名を抽出する方法を教えていただけますか?

2 years ago | 1 answer | 0

1

answer

Answered
プロットに垂直線を追加するにはどうしたらよいですか?
MATLABでは、R2018b以降でこの機能が組み込まれています。 R2018b以降をお使いの場合は、xline や yline 関数を使用できます。例えば、x=5に垂直線を作成するには次のようにします。 xline(5) y=10に水平線を作成...

2 years ago | 0

| accepted

Question


プロットに垂直線を追加するにはどうしたらよいですか?
指定したサンプルポイントに垂直線をプロットに追加する方法を教えていただけませんか?例えば、1x41の強度値ベクトルがあり、中央のサンプル(サンプル番号21)に垂直線を追加したいです。

2 years ago | 1 answer | 0

1

answer

Answered
凡例のフォントサイズを変更するにはどうしたらよいですか?
R2022a以降では、fontsize 関数を使用して、図全体や特定のオブジェクト(例えば凡例)のフォントサイズを変更することができます。フォントサイズを特定の数値に設定することもできますし、オブジェクト内のすべてのテキストのサイズを相対サイズを保ちながら...

2 years ago | 0

| accepted

Question


凡例のフォントサイズを変更するにはどうしたらよいですか?
プロット内の凡例のラベルのフォントサイズを変更するにはどうすればよいですか?例えば、プロット内の「One」、「Two」、「Three」、「Four」のラベルのフォントサイズを大きくする方法を教えてください。 plot(rand(4)) lgd = leg...

2 years ago | 1 answer | 0

1

answer

Answered
マーカーに色を塗るにはどうしたらよいですか?
もしプロットにラインではなくマーカーのみを描画する場合、scatter 関数を使用して「filled」オプションを指定することで、塗りつぶされたマーカーを作成できます。 x = rand(1,50); y = rand(1,50); colors =...

2 years ago | 0

| accepted

Question


マーカーに色を塗るにはどうしたらよいですか?
「Rainflow_input1.txt」というファイルを使用しています。 Rainflow_input1.txt 2つのプロットがあります。プロット2のマーカーを塗りつぶすにはどうすればよいでしょうか?現在、マーカーは空の状態です。 Input_Ma...

2 years ago | 1 answer | 0

1

answer

Answered
配列からゼロを取り除くにはどうしたらよいですか?
各行から1つのゼロを取り除き、ゼロ以外の要素で新しい行列を再構築するには、以下のコードを試してください。 a = [1 4 0 3; 0 1 5 5; 1 0 8 1; 5 4 4 0; 0 1 5 2] v = nonzeros(a') newmat ...

2 years ago | 0

| accepted

Question


配列からゼロを取り除くにはどうしたらよいですか?
配列からゼロを取り除きたいと考えています。この配列には各行にちょうど1つのゼロが含まれています。例えば、以下の配列があります。 a = [1 4 0 3; 0 1 5 5; 1 0 8 1; 5 4 4 0; 0 1 5 2] この配列を次のよう...

2 years ago | 1 answer | 0

1

answer

Answered
PyInstaller を使用して Python 用の MATLAB エンジン API をパッケージ化するにはどのようにしますか?
MATLAB Engine API パッケージをアプリに含めるには、以下の手順に従います。 1.PyInstaller の Python ターゲット ファイルを含むディレクトリに移動し、まだ存在しない場合は「hooks」という名前のディレクトリを作成します...

2 years ago | 0

| accepted

Question


PyInstaller を使用して Python 用の MATLAB エンジン API をパッケージ化するにはどのようにしますか?
Python 用の MATLAB Engine API を使用する Python アプリケーションをパッケージ化するために PyInstaller を使用しています。作成された実行可能ファイルには Python パッケージ「matlab」はバンドルされてい...

2 years ago | 1 answer | 0

1

answer

Answered
How to use "Optimize" task in Live Editor to solve discrete mixed integer problem-based optimization problem?
To solve such problems, the "Optimize" task in the Live Editor can be used. Since the solution in mapped to custom integers (e.g...

2 years ago | 0

| accepted

Question


How to use "Optimize" task in Live Editor to solve discrete mixed integer problem-based optimization problem?
How to use "Optimize" task in Live Editor to solve discrete mixed integer problem-based optimization problem? For example, I wou...

2 years ago | 1 answer | 0

1

answer

Question


Why do standalone applications built using "Simulink Compiler" with "boolean" values yield unexpected results in MATLAB R2024b?
I have an app where I am using a button to switch on a light. I am creating a variable "newVar" based on the status of the butto...

2 years ago | 1 answer | 0

1

answer

Answered
How to programmatically set "Average reference power" and "reference phase offset (rad)" parameters for Simulink "Constellation Diagram" block in the Communications Toolbox for MATLAB R2024b?
"Average reference power" and "reference phase offset (rad)" parameters cannot be programmatically modified as of MATLAB 2024b. ...

2 years ago | 0

| accepted

Question


How to programmatically set "Average reference power" and "reference phase offset (rad)" parameters for Simulink "Constellation Diagram" block in the Communications Toolbox for MATLAB R2024b?
I am unable to programmatically access "Average reference power" and "reference phase offset (rad)" parameters for Simulink "Con...

2 years ago | 1 answer | 0

1

answer

Answered
Why does "Record coverage for system under test" alters the test results in "Simulink Test Manager" in MATLAB R2024b?
If "Block Reduction" is ON and "Force Block Reduction Off" is enabled, block reduction becomes inactive when coverage is on. Thi...

2 years ago | 0

| accepted

Question


Why does "Record coverage for system under test" alters the test results in "Simulink Test Manager" in MATLAB R2024b?
For my model shown below, I have two test cases in my Test Suite. Both the test cases are identical except, Test Case 1 has "Rec...

2 years ago | 1 answer | 0

1

answer

Question


How do I force MATLAB R2024b to open documentation pages in the Help Browser?
I installed MATLAB R2024b and noticed that the documentation pages open in my web browser, not the integrated Help Browser used ...

2 years ago | 1 answer | 0

1

answer

Question


Why does External Mode not work with my STM32F4 Discovery after increasing the baud rate?
I am using Embedded Coder R2024a with the Embedded Coder Support Package for STMicroelectronics STM32 Processors for my STM32F4 ...

2 years ago | 1 answer | 0

1

answer

Question


Why does External Mode not work with my STM32F4 Discovery after updating the SYSCLK frequency?
I am using Embedded Coder R2024a with the Embedded Coder Support Package for STMicroelectronics STM32 Processors. My application...

2 years ago | 1 answer | 0

1

answer

Question


How do I troubleshoot issues of applications not opening from the Toolstrip?
I am unable to open Simulink from the Toolstrip. Clicking on the icon does not open anything.  How can I resolve this issue...

2 years ago | 1 answer | 0

1

answer

Answered
特定のプロット上の一点にマーカーを追加するにはどうしたらよいですか?
マーカーを追加する方法は以下の通りです。点自体をプロットする方法: hold on % 現在の図にプロットを追加するため plot(x_pos, y_pos, 'r*') % (x_pos, y_pos) の位置に赤いアスタリスクを追加 プロッ...

2 years ago | 0

| accepted

Question


特定のプロット上の一点にマーカーを追加するにはどうしたらよいですか?
以下のプロットがあります。このプロット上で、特定の地点に赤い点を注釈として追加しました。この点にマーカーを追加するにはどうすればよいですか? 

2 years ago | 1 answer | 0

1

answer

Question


Why is "readtable" taking dimensions from first sheet in excel when using "opts"?
Why is "readtable" using the dimensions of the first sheet in excel when I trying to get data from another sheet? For example, i...

2 years ago | 1 answer | 0

1

answer

Answered
How can I find the version of Java that my MATLAB Runtime uses on Windows?
If you have MATLAB Compiler Runtime downloaded on Windows, you can find the Java version yourself. Navigate to the installed MAT...

2 years ago | 0

| accepted

Question


How can I find the version of Java that my MATLAB Runtime uses on Windows?
I would like to know which version of Java my MATLAB Runtime uses, in order to make sure it is compatible with my other products...

2 years ago | 1 answer | 0

1

answer

Answered
Why does Polyspace Cluster Admin show "unknown state" after closing SSH connection?
This behavior is expected. When the SSH connection is closed, it will terminate the command used to launch the admin agent, lead...

2 years ago | 0

| accepted

Load more