Answered
設定点数が少ないのに平滑なマップ
<https://www.mathworks.com/help/simulink/slref/1dlookuptable.html 1-D Lookup Table> を使って内挿法を3次スプラインとするのは如何でしょうか。 <</matlabcen...

6 years ago | 1

| accepted

Answered
fscanfを用いた行列ファイルデータの読み取りについて
データ(数値)だけの区切りファイルなのでしたら |fopen|、 |fscanf| を使わずに |dlmread| などで読み込めます。例えば、このようなテキスト ファイルがあるとします。 1 2 3 4 5 6 7 8 |fopen...

6 years ago | 2

| accepted

Answered
入れ子関数での反復計算、ループのさせ方
入れ子関数とはこのようなものですが <https://jp.mathworks.com/help/matlab/matlab_prog/nested-functions.html 入れ子関数> そのことについて聞かれているのでしょうか?上のコー...

6 years ago | 1

| accepted

Answered
選択した画像の表示
セル配列 |mydata| に複数の画像データが入っているので、通常のインデックスでそれぞれ取り出せます。 1つ目の画像: |mydata{1}| つまり、1つ目の画像を表示したい場合は imshow(mydata{1})

6 years ago | 2

Answered
functionの書き方について
実行された時のエラーメッセージを見てみてください。 おそらく、存在しない変数 |img| があります、みたいなエラーメッセージだと思います。関数を見てみると 2 行目で |clear| を実行してます。せっかく関数に入ってきた変数 |img| がクリ...

6 years ago | 4

| accepted

Answered
InputParser - problem with keepUnmatched
The KeepUnmatched property is for optional parameter-value inputs, not for the required inputs. As Walter mentioned, for this to...

6 years ago | 0

Answered
How can i get matlab R2007b 64Bit compilers
If you are on a 64-bit machine, MATLAB Compiler will create a 64-bit *.dll. So install MATLAB (+ MATLAB Compiler) on a 64-bit ma...

6 years ago | 0

Answered
Readtable extremely slow when excel file has formatting
Have you tried setting the <https://www.mathworks.com/help/matlab/ref/readtable.html#input_argument_d0e847323 "basic" property> ...

6 years ago | 2

Answered
dlmwrite関数で列ベクトルをテキスト出力する際、列サイズが大きいと途中で改行されてしまう。
出力された txt ファイルをどのように確認してますか?Windowsのメモ帳だと恐らく表示する幅に限度があるみたいです。 <</matlabcentral/answers/uploaded_files/85140/notepad.png>> ...

6 years ago | 0

Answered
arrayfun() mistakes a vector optimization parameter for a scalar optimization parameter
Isnt't it because you are passing in "1" (scalar) as the initial guess to |fminsearch|? Perhaps you can pass in a 1x413 vector o...

6 years ago | 0

Answered
How to extract image pixel region by image index value ?
im_region = im(id1:id2,id3:id4);

6 years ago | 0

Answered
x軸の値を表記転換するには?
新しい質問に対して回答します。 1. データ番号を100(正確には101 : MATLAB は1から数えるため)から15刻みで表記。 |plot| コマンドの前にx軸となるベクトルを定義すればできます。 % まず 0 ~ 511 まで...

6 years ago | 2

| accepted

Answered
Manipulating strings defined with the new double quote option
Read up on the documentation on "strings". <https://www.mathworks.com/help/matlab/matlab_prog/create-string-arrays.html Creat...

6 years ago | 6

Answered
値の変動を色で表現するグラフの作成方法
色スケールは |surface| コマンドで無理やり作ってみました。例として既定のカラーマップ(parula)を使用しましたが、実際のスケール(1が赤で-1が青、その間は?)が分かれば簡単に変更できると思います。 % データ定義 x = 0...

6 years ago | 3

| accepted

Answered
日付のかけ離れた折れ線グラフを同じx軸上にプロットし、離れている区間は省略してプロットしたい。
既存の機能としてはないと思いますのでグラフのカスタマイズをうまく活用するのがよいでしょう。Michio さんの方法も一つですが、他の案として二つ別々の軸を作成して、隣同士に配置するというのはどうでしょう。 % x軸のデータは xData1 xDa...

6 years ago | 4

Answered
フーリエ解析を使用した周波数解析について
正弦波は sin(2*pi*f*t) なので定義は以下のようになるのではないでしょうか。 sinwave1 = sin(2*pi*0.5*model_timestep1); sinwave2 = sin(2*pi*1*model_times...

6 years ago | 2

| accepted

Answered
waveletを使用した低周波の解析について
Wavelet についてそれほど詳しくはないのですが、ざっとコードを拝見してて気づいたのですが、 |fa| の定義が fa = 0.1:1; だと 0.1 Hz しか定義されません。 fa = 0.1:0.1:1; にすると...

6 years ago | 2

| accepted

Answered
MATLAB(あるいはSimulink)とProcessingの間でのリアルタイムのデータの渡し方について
同じPC内の二つのプロセス通信だと COM や TCP/IP などが考えられます。また、MATLAB には様々な言語から呼べるインターフェイスがありますので、もしかしたら Processing が Java ベースなのでしたら Java 用 AP Iが使え...

7 years ago | 3

| accepted

Answered
ある2値画像に白い線を引いて保存したいのですができません.
|Figure| の <https://jp.mathworks.com/help/matlab/ref/figure-properties.html#property_d0e267493 |InvertHardCopy|> プロパティを変更すればうまく行...

7 years ago | 1

| accepted

Answered
parforによる高速化
実際に並列化しようとしているコードはもともとどの位の時間がかかる処理でしょうか。添付されたファイルはサンプルコードだと思いますが、1秒程度の処理を並列化してもほぼ高速化は得られないでしょう。 どの位で効果が得られるかはコード、データ、PCスペックなど...

7 years ago | 3

| accepted

Answered
3次元の曲面上にコンターを描画する方法を探しています
<https://jp.mathworks.com/help/releases/R2016b/matlab/ref/contourslice.html#bty8bhh-1 contourslice> で可能かと思います。ドキュメントの2つ目の例(球面に沿っ...

7 years ago | 4

| accepted

Answered
リンク貼り付けコードについて
<https://jp.mathworks.com/help/matlab/ref/uicontrol.html uicontrol> のコールバックを使うのはいかがでしょう。 surf(peaks) uicontrol('String',...

7 years ago | 3

| accepted

Answered
vl_siftが未定義ですと表示されてしまいます.
その手のエラーメッセージは一番良く出る基本的なエラーメッセージです。 ドキュメンテーションのこのページをご覧になって対処してみて下さい。 <https://jp.mathworks.com/help/matlab/matlab_prog/cal...

7 years ago | 1

Answered
comet(プロット)の停止、再生、逆再生方法
|comet| にはユーザーが割り込んで停止させたり逆再生させたりする機能がついていないので、自分で作るしかありません。ドキュメンテーションに様々なサンプルとかがあるのでご覧下さい。 <https://www.mathworks.com/help/r...

7 years ago | 4

| accepted

Answered
How to find the latest peak value of a curve.
[pk,loc] = findpeaks(P(end:-1:1),'NPeaks',1); [U(end-loc+1) pk]

7 years ago | 0

| accepted

Answered
ウェブ文字エンコード
少し分かりづらいんですが、 <https://jp.mathworks.com/help/matlab/ref/sprintf.html#input_argument_formatSpec |sprintf|> で特殊文字を表示する書式を使えば変換できます...

7 years ago | 4

| accepted

Answered
How can I acquire frames from a live video stream, acquire the frames, then use the frames to recreate the live video stream?
One such example. v = VideoReader('xylophone.mp4'); % Display first frame firstFrame = readFrame(v); subplot(1...

7 years ago | 0

Answered
Label bars of a histogram
A number of ways, but here is one: label = arrayfun(@(x,y) sprintf('%g - %g',x,y), ... binranges(1:end-1), binranges(...

7 years ago | 1

Answered
How to get the gray level co-occurrence matrix feature which is energy, entropy and contrast of the image using GUI?
From Image Processing Toolbox, <https://www.mathworks.com/help/images/ref/graycomatrix.html |graycomatrix|> and <https://www.mat...

7 years ago | 0

| accepted

Answered
Controlling the spacing of markers in fplot (symbolic variable)
How about converting your symbolic variables to numeric just for plotting? Then all those suggestions would work. Moreover, i...

7 years ago | 4

Load more