Answered
drive connector でWindows PC上に作成したローカルフォルダーを他のフォルダーに変更したいので、方法を教えてください。
MATLAB Drive Connectorは一度インストールされると途中でローカルフォルダーの変更ができません。 参考:MATLAB Drive Preferences and Account Information Folder Locatio...

9 months ago | 0

| accepted

Answered
アプリケーションデザ​イナーで、グラ​フを消す方法を教​えていただけないでし​ょうか?(Draw/Deleteボタンを設置)
グラフの Figure および座標軸の準備が参考になるかもしれません。NextPlotはnewplotを実行したときに反映されるので、Deleteボタンのコールバックに1行追加すればプロットが消去されます。 % Button pushed functi...

10 months ago | 1

| accepted

Answered
labelmeで作ったjsonファイルをmatlabを用いて、jsonからpng画像を出したい
JSONファイルの読み込みは、fileread (文字列として読み込む)、readlines (string配列として読み込む)、そしてR2023bからはreadstruct (構造体として読み込む)などが使えます。 JSONファイルを読み込んだ後、中の...

10 months ago | 1

| accepted

Answered
ニューラルネットワークのC++共有ライブラリ化について
2点あります。 (1) matファイルの読み込み Call_testing2.mの処理の中でmatファイルを読み込む処理がないため、ANNmethodが存在しないというエラーが出てしまいます。load('ANNmethod.mat')を追加してください...

10 months ago | 0

Answered
グラフィックオブジェクトのコールバック関数内における、quiverオブジェクト取り扱い
上記のコードだとVoが関数の中のワークスペース(ローカル変数)で定義され、getaxPos実行後にクリアされてしまいます。 参考:ベース ワークスペースと関数ワークスペース 「関数ワークスペースに固有の変数は "ローカル" 変数と呼ばれます。一般に...

10 months ago | 1

Answered
App Designerの「座標軸」上に、fimplicitをプロットを行う方法
fimplicit のドキュメントに座標軸 (ax)を指定する方法が書いてありますので、 ボタンを押したときのコールバックの中に、座標軸を指定してみてください。 たとえば下記のように座標軸 (app.UIAxes)がある場合に、 ボタンの...

10 months ago | 2

| accepted

Answered
reshape関数のエラーが出ます。
上のコードではdataが0:36000なので1行36001列のデータになっていて、600×600のサイズにリサイズできていないのが原因です。600×600は360000なので。 下記のようにしてみてはいかがでしょうか。 data = rand(10, ...

11 months ago | 1

| accepted

Answered
plotの線の色を途中で変更する
xとyでデフォルトの色の範囲と色を変えたい範囲に分割してプロットする方法で実現できます。 x = 0:5; y = 0:2:10; plot(x([1:3, 5:6]), y([1:3, 5:6]), '-o', x(3:5), y(3:5), '-...

11 months ago | 1

Answered
Matlabが起動しなくなりました。
OSはWindowsでしょうか? コマンドプロンプトを起動して where matlab.exe を実行するとmatlab.exeのパスが表示されます。 もし表示されない場合は、環境変数PATHにMATLABのインストールフォルダーが含まれていない...

12 months ago | 2

| accepted

Answered
学習済みモデルの保存と利用について
ドキュメントで近いものだと「浅層ニューラル ネットワークによるデータの当てはめ」の「ネットワークのエクスポート」あたりになりますが、回答は以下のとおりになります。 ①学習済みモデルの保存 ニューラル ネットフィッティングアプリから、学習済みのモデルを「...

12 months ago | 0

Answered
Application Compiler types not showing
You need to launch Library Compiler App. Excel Add-in is in the list.

12 months ago | 1

| accepted

Answered
How to install "mpm" command?
There are two MPM, one is in MATLAB installation (with matlab -mpm) and the other is from GitHub. I found that mpm install-doc d...

12 months ago | 0

Answered
スタンドアロンアプリ作成時のパッケージ化について
サポートパッケージによっては、全てのファイルがパッケージに含まれないことがあるので、今回のようなpファイル (難読化されたスクリプト)だと手動でパッケージに追加するなどの対応が必要になります。 ただ、全てのファイルが含まれていなくてもサポートパッケージの...

12 months ago | 0

Answered
Is there a MATLAB toolbox for processing GRACE data?
There are several community GRACE tools for MATLAB. Did you try one of them? GRACE Matlab Toolbox (GRAMAT) GRACETOOLS MATLAB ...

12 months ago | 1

| accepted

Answered
Linux端末上のMatlabプログラムの呼び出し方法について
質問① こちらは、Linux側にWebサーバーやCGIが立っていればHTTPで投げられますが、何もなければSSHでの実行となります。 下記のようなコマンドをWindowsのMATLABのアプリから実行するイメージです。 system("ssh use...

1 year ago | 0

Answered
特定の文字が含まれる隣の値を抽出する
ドキュメント「条件を満たす配列要素の検索」が参考になると思います。"引上げ"に合致する行をインデックスで取得すれば良いかと。 format long A = readtable('data.csv', 'NumHeaderLines', 0, 'Tex...

1 year ago | 1

| accepted

Answered
saveas(gcf,save_name+".png")をフォルダを指定して保存
saveasの第2引数に「フォルダー名\」 (Windowsの場合)、「フォルダー名/」(LinuxとMacの場合)を入れるか、fullfileでフォルダー名入りのパスを作ればできます。 例えば現在のフォルダーの中にあるresultというフォルダーに入れ...

1 year ago | 3

| accepted

Answered
アプリをインストールしたのに、アプリ一覧に表示されない
ツールボックスとアプリが混同してしまっているかもしれません。 SimulinkやStateflow、MATLAB Coderなどはツールボックス (製品)で、「アプリ」はGUIで操作できるツールボックスの機能になります。全てのツールボックスがMATLAB...

1 year ago | 0

| accepted

Answered
仮想メモリがWindowsPC設定値よりも大きい理由
「Windows 64bit OS上で一つの変数が​使用できるメモリ容量​を確認する方法はあり​ますか?」の回答が参考になると思います。 各 Largest Contiguous Free Blocks は、一つの変数が使用できる最大メモリを示してい...

1 year ago | 0

Answered
readtableが勝手にアンダーバーで分割するのを通常通りコンマで分割してほしい
readtable のオプションでDelimiterを指定できますので、コンマで区切るように指定してみたら実現できます。 file1 = 'https://jp.mathworks.com/matlabcentral/answers/uploaded_f...

1 year ago | 0

Answered
Creation of projection metadata file (*.prj) for shapefiles
As of R2023a, shapewrite does not create .prj file, so you need to create it with wktstring and writematrix. Here is a sample. ...

1 year ago | 1

| accepted

Answered
オートコーディング機能を適用しても,かっこや引用符のオートコンプリートが実行されない。
エディターでの自動補完はR2021bからの機能になっており、R2021aでは対応していません。 R2021aではライブエディターとApp Designerで自動補完に対応していますが、そちらは動作しておりますでしょうか。

1 year ago | 0

| accepted

Answered
MATLAB Compilerで作成したEXEファイルから、MATLABスクリプト(.mファイル)で定義されるコマンドを読み込む方法はありますか?
mファイルを実行するにはMATLABが必要になってしまい、PlotData.exeからMATLABを呼び出すという形になりMATLAB Compilerでパッケージ化してデプロイする意図が薄れてしまいます。 .mや.mlx以外で、例えば.csvや.xls...

1 year ago | 0

| accepted

Answered
How to acces coordinates of a mappolyshape object?
You can check X and Y data by converting to table with geotable2table function. hydro = readgeotable("concord_hydro_area.shp");...

1 year ago | 1

| accepted

Answered
どうしたらエラーが出なくなるでしょうか
I>200を実行したときに、RGBそれぞれの色の配列で輝度値が200より大きいものが1、200以下が0となる、1か0かのlogical配列が作られます。kのサイズはm行n列×3 (RGB)のlogical配列です。 方法1 エラーメッセージにあると...

1 year ago | 2

Answered
why won't Matlab plot anything?
Your code works fine. R1=5; R2=7; thetaP=linspace(0, 2*pi); plot(R1*cos(thetaP), R1*sin(thetaP), '-b', ... R2*cos(t...

1 year ago | 0

Answered
compiling custom made trained deep nn with Library Compiler for calling from Python
In Library Compiler, Support Packages are automatically included. If not, you can manually add the support package by "-Z p...

1 year ago | 0

Answered
How to solve error, Web App Server service failed to start. No logs were written.
How about uninstalling Windows Service of MATLAB Web App Server? webapps-uninstall Document: webapps-uninstall Then, try se...

1 year ago | 0

| accepted

Answered
web app does not show UIAxes
In R2023a general release, there was a bug regarding axes and web apps. [Bug Report] MATLAB graphics objects, such as axes, plo...

1 year ago | 0

Answered
I can't set up the MATLAB Production Server dashboard, why?
This issue was discussed in the comments of another post and solved. First add "<MATLAB_Production_Server_Install_Root>\bin\wi...

1 year ago | 0

| accepted

Load more