Answered
範囲を指定してヒストグラムからaverage, variance, skewnessの算出
まずは論理配列の使用をお勧めします。例えば変数 x から x>0 という条件を満たす要素だけを取り出して x_new という新しい変数を作る場合、 x_new = x(x>0); とのコマンドになります。x > 0 という条件式を x のイ...

9 years ago | 3

| accepted

Answered
ライブラリの関数コールする
ソースとなるCコードが手元にない共有ライブラリのSimulink上での呼び出し、またそのモデルのコード生成が可能かということでしょうか。 まず、前者に関しては <http://jp.mathworks.com/matlabcentral/ans...

9 years ago | 1

Answered
MATLAB Coder 試用版を取得しようとするとエラーが発生します
現在、MATLAB Coderに関しては、試用版を担当営業を経由して提供しているため、「MATLAB Coder 試用版の取得についてはお問い合わせください」との表示になります。 "Contact us"のボタンが機能しない場合は他のブラウザーから試...

9 years ago | 4

| accepted

Answered
RNNの学習において、多次元入力での学習は可能でしょうか?
例えば、X{1,1}=[0.8147; 0.8147] と行数を出力のそれと合わせることで、複数要素の時系列入力を使うことが出来ます。ドキュメンテーションの例ですと、 [X,T] = simpleseries_dataset; A = ce...

9 years ago | 3

| accepted

Answered
How can I simulate 2 materials in pde toolbox script?
Thanks for your clarification. As you have already made use of it, but sub-domain support is available for 2D problems, so yes y...

9 years ago | 0

| accepted

Answered
PDE Toolbox. Parabolic heat transfer: How to specify a forcing term to act only on the boundary?
It may not an elegant way. Since your boundary is defined in clear fashion, I think it's worth a try. Instead of f = @(...

9 years ago | 0

Answered
I'm looking to plot a rectangular pulse and triangula
Have you looked at stairs function? For discrete data, stem function could be a choice too. X = [0,1,2,3,4,5]; Y = ...

9 years ago | 0

Answered
How would I write a function that arranges a series of number by ascending order?
How's sort function? http://www.mathworks.com/help/matlab/ref/sort.html

9 years ago | 2

| accepted

Answered
Can relative and absolute tolerances be set for the solvepde function?
Yes you can through SolverOptions property of PDEModel. >> pdemodel = createpde pdemodel = PDEModel with propertie...

9 years ago | 0

Answered
how can i restrict the pixel values of an gray image between 20 and 240.
Have you looked at imadjust function from Image Processing Toolbox? It may help. http://www.mathworks.com/help/images/ref/im...

9 years ago | 0

Answered
I cannot use graph and digraph functions in matlab 2013b, how to fix it?
digraph and graph functions were introduced at R2015b. So a solution is to upgrade your MATLAB version to R2015b or later.

9 years ago | 2

Answered
How to find close values in matrix?
If you use R2015a or later, ismembertol function may help. ismembertol http://www.mathworks.com/help/matlab/ref/ismembertol....

9 years ago | 1

Answered
How to plot a stacked histogram from multi text files
In the script above you call hist function [y, b] = hist(filename); which causes an error, whose message indicates that...

9 years ago | 0

Answered
How can I make a histogram from many text files?
Duplicate: http://jp.mathworks.com/matlabcentral/answers/302666- Assuming the situation where the all data would NOT fit in R...

9 years ago | 0

Answered
Switch elements of the 2nd and 3d dimension in 3D matrix
Have you tried permute function? http://www.mathworks.com/help/matlab/ref/permute.html I am guessing B = permute(A,[1,3,2...

9 years ago | 3

| accepted

Answered
複数のテキストファイルからヒストグマムを作る方法を教えてください
1000以上のtext fileにあるデータを全てまとめて1つのヒストグラムを作成されたいとのこと、これはそれぞれのファイルからのデータを縦に異なる色で重ねたヒストグラムをイメージすればいいでしょうか?例: y = [2 2 3; 2 5 6; ...

9 years ago | 2

Answered
MATLABのR2009bで作成したプログラムをR2015aで動かすとscatter3を使った表示が異なります.何が問題でしょうか?
R2014bで刷新されたグラフィックスシステムの影響かもしれません。 http://jp.mathworks.com/help/matlab/graphics-changes-in-r2014b.html ダミーのデータでも大丈夫ですので、実際に問...

9 years ago | 3

Answered
How can I refine a subdomain in the PDE Toolbox mesh generation tool?
I assume your problem is in 2D, then refinemesh function accepts an extra input argument "it", that is interpreted as a list of ...

9 years ago | 2

| accepted

Answered
逆行列を求める処理を高速に行いたいです
明示的に逆行列を求める必要はなく線形方程式 Ax = B を求める上では x = A\b がもっとも適切かと思います。 行列のサイズ・特徴にも依存しますが、Parallel Computing Toolbox の組み込み関数を使用したGPUによる並列処理...

9 years ago | 4

Answered
凡例の長さを変えたい
R2014b以後のバージョンを仮定しますが、legendオブジェクトのプロパティを編集することで、凡例で表示される線の長さを変更することが可能です。 例えば、下記は凡例の線を長く変更しています。 h1 = plot(1:10); [h...

9 years ago | 3

| accepted

Answered
最適な近似式の探索方法について
線形結合(例:Y = C1*a + C2*b + C3*c) であれば Statistics and Machine Learning Toolbox (R2014b以前はStatistics Toolbox) の関数 fitlm が便利です。 線形...

9 years ago | 2

| accepted

Answered
Polar関数での線の太さと角度ピッチの指定
R2016aで新しく実装された polarplot 関数ではオプションで、線の太さ、角度ピッチを任意に指定することが出来ます。 polarplot http://jp.mathworks.com/help/matlab/ref/polarplo...

9 years ago | 2

| accepted

Answered
Neural Network ToolboxでのCNN使用について
既にコメント欄に英語で回答がついていますが、R2016aでのCNNの実行には Compute Capability 3.0 以上の CUDA®-enabled NVIDIA® GPUが搭載されたマシンが必要です。

9 years ago | 1

Answered
大規模行列の固有値問題
計算の可否は行列の性質、非ゼロ要素の割合、ご利用の環境に依存します。 40万x40万の行列はdouble型で定義した場合、密な行列で約1200GB、スパース行列で定義しても1%の非ゼロ要素率で約12GBの容量を必要とします。 例えば行列をローカ...

9 years ago | 3

Answered
Matlab to extract the n th diagonals in a Matrix
Have you considered using diag function? A=[ 1 0 0 0 ; 0 2 0 0 ; 0 0 3 0 ; 0 0 0 4]; dA = diag(A); dA([2,4]) ans = ...

9 years ago | 0

Answered
日本語版MATLABでReport Generatorにより英語のレポートを作成するにはどうすればよいですか?
日本語版MATLABをインストールした場合でもデスクトップ言語を英語に設定してMATLABを起動することで、出力レポートの言語を英語にすることができます。 R2015aからは[設定]メニューから言語を設定できます。ホームタブの[設定]から[一般]に進...

9 years ago | 3

| accepted

Answered
Compute the product of the next n elements in matrix
In the spirit of avoiding for-loops... x = 1:10; n = 3 % Example N = length(x); index = zeros(N-n+1,n); index(:,1) ...

9 years ago | 0

Answered
Matlab how to draw multiple subplots on an inactive window.
I think the issue will be resolved if you specify which axes to make a plot on. Try handle_figure = figure; for i=1:64 ...

9 years ago | 0

Answered
How to clear all handles of style or type 'text' or 'static text' in Matlab GUI ?
Have you considered using findobj function? It locates graphics objects with specific properties. h = findobj(objhandles,'P...

9 years ago | 0

| accepted

Answered
How to write matlab code for Heat equation to find order of convergence using finite element method when exact solution is unknown
PDE Toolbox offers finite element functionalities for both 2D and 3D problem. Regarding the order of convergence without know...

9 years ago | 0

Load more