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

plus de 6 ans il y a | 1

| A accepté

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

plus de 6 ans il y a | 2

| A accepté

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

plus de 6 ans il y a | 1

| A accepté

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

plus de 6 ans il y a | 2

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

plus de 6 ans il y a | 4

| A accepté

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

plus de 6 ans il y a | 0

A répondu
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...

plus de 6 ans il y a | 0

A répondu
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> ...

plus de 6 ans il y a | 2

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

plus de 6 ans il y a | 0

A répondu
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...

plus de 6 ans il y a | 0

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

plus de 6 ans il y a | 0

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

plus de 6 ans il y a | 2

| A accepté

A répondu
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...

plus de 6 ans il y a | 6

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

plus de 6 ans il y a | 3

| A accepté

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

presque 7 ans il y a | 4

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

presque 7 ans il y a | 2

| A accepté

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

presque 7 ans il y a | 2

| A accepté

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

presque 7 ans il y a | 3

| A accepté

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

presque 7 ans il y a | 1

| A accepté

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

environ 7 ans il y a | 3

| A accepté

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

environ 7 ans il y a | 4

| A accepté

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

environ 7 ans il y a | 3

| A accepté

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

plus de 7 ans il y a | 1

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

plus de 7 ans il y a | 4

| A accepté

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

plus de 7 ans il y a | 0

| A accepté

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

plus de 7 ans il y a | 4

| A accepté

A répondu
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...

plus de 7 ans il y a | 0

A répondu
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(...

plus de 7 ans il y a | 1

A répondu
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...

plus de 7 ans il y a | 0

| A accepté

A répondu
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...

plus de 7 ans il y a | 4

Charger plus