Answered
平面(ax+by+cz+d=0)への近似
<http://samueruchoi.blogspot.jp/2013/02/matlab_20.html?m=1> ような例もあるようですが、Curve Fitting Toolbox の <https://jp.mathworks.com/...

9 years ago | 3

| accepted

Answered
Replace an element in a matrix if it's a member of an array with zero
<https://www.mathworks.com/help/matlab/ref/ismember.html _ismember_ function> can do the job. As it's stated in the doc page, "L...

9 years ago | 1

| accepted

Answered
Why two equal numbers are not equal?
Also please refer to "Compare Floating-Point Numbers" example of the doc page: <https://jp.mathworks.com/help/releases/R2016b/m...

9 years ago | 0

Answered
How do I write a script that creates an M x N array of random numbers?
M = 5; N = 4; a = rand(M,N); a(a<=0.2) = 0; a(a>0.2) = 1;

9 years ago | 0

Answered
Stacked Autoencoder + Softmax-layer のNNをSVMへ転移学習したい
R2016b の時点では、ファインチューニング後にSoftmax-layerの前までの層の出力を取り出す機能は実装されていませんが、ファインチューニング後のネットワーク (deepnet) から 重み Weight とバイアス Biases を手動でコピー...

9 years ago | 1

| accepted

Answered
How to split a matrix based on array similarity
I am not sure how you define "similarity" but you can try out clustering functions available in Statistics and Machine Learning ...

9 years ago | 0

Answered
How to solve system of first order differential equations
First off, I'd suggest reformulate your equation into dy1/dt = f1(y1,y2,u1,u2); dy2/dt = f2(y1,y2,u1,u2); Then you can...

9 years ago | 0

Answered
MATLAB Runtimeで期限切れが発生する
MATLAB Compiler Runtime (MCR) 自体の有効期限というのは初耳です・・。 実行されようとしているアプリケーションが評価版のMATLAB Compilerを使用して作成されたもの、という可能性はありますがいかがでしょうか? ...

9 years ago | 5

| accepted

Answered
How to perform moving average?
Have you checked movmean function? <http://www.mathworks.com/help/matlab/ref/movmean.html>

9 years ago | 1

Answered
patchの表面カラーにテクスチャを割り当てることはできますか?
詳細に記載頂きありがとうございます。 おっしゃる通り patch オブジェクトでは、全体の色、もしくは面毎/頂点毎の色指定にのみ対応しており、ポリゴンの頂点の密度が粗い場合、テクスチャ画像の再現は難しいですね。個人的にはsurface オブジェクトの...

9 years ago | 4

| accepted

Answered
How can I multiply cell arrays
Not sure if the way you described is the best way to proceed but here you can make use of _cellfun_ to achieve I think what you ...

9 years ago | 0

| accepted

Answered
2014b で save(uisave)を用いてmat fileを保存する際、figure を保存しないようにするためにはどうすればいいですか?
おっしゃる通り、この動作は R2014b の仕様変更によるものです。uisave や save を実行する際に、保存すべき変数名を明示的に指定して回避することができるか思いますが、いかがでしょうか? figure などの GUI を表示した場合、R2...

9 years ago | 2

Answered
windows7 8.1 10の32bitOSにて評価版を使用したいのですが存在しますか?過去のVer.でも構いません。
セルフサービスでご利用頂ける評価版は最新版(現在R2016b) のみになります。32bit OS で使用できる R2015b 以前のバージョンを試されたい場合には、 <http://www.mathworks.com/programs/trials/...

9 years ago | 5

Answered
How can I retrieve RGB array from a colormap given a CData?
By default (with CDataMapping property is set to 'scale'), CData is scaled to "map" to colormap range. So if you somehow convert...

9 years ago | 2

Answered
Solving ODE45 equations in matlab without a function
It is stated that "The function dydt = odefun(t,y), for a scalar t and a column vector y, must return a column vector dydt" (See...

9 years ago | 0

| accepted

Answered
How do I make plot a 3D matrix as a scatter plot with color based on value?
<http://www.mathworks.com/help/matlab/ref/scatter3.html scatter3> allows you to specify color. Please have a look at the example...

9 years ago | 1

Answered
Get variable out of ode 45
One way is to use OutputFcn. The following entry could be of use. <https://jp.mathworks.com/matlabcentral/answers/305698-how-...

9 years ago | 1

| accepted

Answered
matlabにて階層型隠れマルコフモデル(HHMM)の作成は可能でしょうか?
階層型隠れマルコフを構成する組み込み関数はありません(R2016b 現在)が、Github にMATLABでの実装例があるようです。 <https://github.com/TheFGX/Hierarchical-Hidden-Markov-Mode...

9 years ago | 1

Answered
地球の表面温度データから地図にプロットする方法
Possible Answer: <https://www.mathworks.com/matlabcentral/answers/304636-how-to-make-a-global-map>

9 years ago | 0

Answered
Instrument Control ToolboxでUSB出力のセンサデータの読み取りはできますか?
File Exchangeで公開されているこちらのサンプルはお試しいただきましたか? <http://jp.mathworks.com/matlabcentral/fileexchange/13547-simulink-serial-example-...

9 years ago | 1

| accepted

Answered
リアルタイムに変化する変数への代入値を記録する方法
幾つか確認させてください。 # _stats_ は イメージ領域のプロパティの計測を行う _regionprops_ 関数の出力でしょうか。 # 「for文中の変数bcはリアルタイムに変化」とは、 _for_ ループが進行する毎に bc が変化する...

9 years ago | 3

| accepted

Answered
時系列プロットの作り方
_TimeInfo_ プロパティの設定をされているということで、 <https://www.mathworks.com/help/matlab/ref/timeseries-class.html timeseries オブジェクトの作成> をお考えかと...

9 years ago | 3

| accepted

Answered
温度マップのデータの結合の仕方について
実行可能なコードをありがとうございます。 提示頂いたコードですと、地図上に10368個(72x144)存在する 2.5°四方がそれぞれ _x_ で指定される一色で表示されます。 すなわち、Lat = 26.25°N, Lon = 21.25°E...

9 years ago | 1

Answered
クラスタリングしたデータの地図へのマッピング
クラスタリング結果 _idx_ をインデックス画像として取扱う方法はいかがでしょうか。 geoshow(idx,cmap,rv); _kmeans_ 関数の出力の1つ _idx_ にはクラスタリング後のクラス番号が出力されています。cmap ...

9 years ago | 1

Answered
値の一般化
平均を0、標準偏差を1に揃える処理でしたら、 _normc_ 関数ではなくStatistics and Machine Learning Toolbox の関数 <https://jp.mathworks.com/help/stats/zscore.ht...

10 years ago | 2

| accepted

Question


Tutorial: MATLAB Answersで早く的確な回答を得るためのポイント
MATLAB Answers はサポートセンターではなく、MATLAB/Simulink に興味のある方がstaffも含め互いに知識や情報を交換・共有する助け合いの場です。 宿題・研究課題などの丸投げはご勘弁くださいませ。 また、問題点・状況をできるだ...

10 years ago | 0 answers | 23

0

answers

Answered
datastoreによりデータの読み込み
添付頂いた text ファイルは値がスペースで区切られ横一列に並んだデータの様です。 _RowDelimiter_ オプションで「スペースで行を区切る」と認識させることで、すべてのデータを縦一列の形で読み取ることが出来ます。 dsX = data...

10 years ago | 2

| accepted

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

10 years ago

Answered
selection of particular rows from a matrix?
_ismember_ function could do the work with 'rows' option. <https://www.mathworks.com/help/matlab/ref/ismember.html ismember: ...

10 years ago | 0

Answered
how to reject of the next value less than the previous one
Not sure what you mean by reject, but will the following be of any help? x=10; while true newvalue = 20*rand; if n...

10 years ago | 0

| accepted

Load more