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

fast 9 Jahre vor | 2

| akzeptiert

Veröffentlicht


MockObject
Sean‘s pick this week is Mock Object by Paul Sexton. Paul has provided a mock object that is useful for mocking...

fast 9 Jahre vor

Thumbnail

Veröffentlicht


New Deep Learning Blog
Our colleague and long time blogger Steve Eddins recently started a second blog on Deep Learning.  If you are interested in...

fast 9 Jahre vor

Thumbnail

Veröffentlicht


MATLAB Basemap Data (R2017b)
Jiro‘s pick this week is MATLAB Basemap Data by MathWorks Mapping Team.In the new R2017b release, there is a new interactive...

fast 9 Jahre vor

Thumbnail

Veröffentlicht


Membrane Logo Zoetrope
Sean‘s pick this week is the MathWorks Logo Zoetrope by Ned Gulley. This week I urge you to check out the blog post on the...

fast 9 Jahre vor

Thumbnail

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

fast 9 Jahre vor | 1

| akzeptiert

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

fast 9 Jahre vor | 2

Veröffentlicht


Cursorbar
Sean‘s pick this week is Cursorbar by Marjorie. I really like both Simulink Data Inspector and the new Signal Analyzer App...

fast 9 Jahre vor

Thumbnail

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

fast 9 Jahre vor | 4

| akzeptiert

Veröffentlicht


Reading the last N lines from a CSV file
Jiro‘s pick this week is csvreadtail by Mike.Recently, I’ve been working on customer projects around improving the...

fast 9 Jahre vor

Thumbnail

Veröffentlicht


Summing and Multiplying NaNs: Use cases???
Contents nancumsum() , nancumprod() My Questions For your consideration nancumsum() , nancumprod() This week, instead of...

fast 9 Jahre vor

Thumbnail

Veröffentlicht


Stateflow sliding mode controller demo
Will‘s pick this week is Stateflow sliding mode controller demo by Bogumila &amp; Zbigniew Mrozek. I always enjoy a good...

fast 9 Jahre vor

Thumbnail

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

fast 9 Jahre vor | 0

Beantwortet
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...

fast 9 Jahre vor | 0

Beantwortet
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> ...

fast 9 Jahre vor | 2

Veröffentlicht


Trace your calls (to your methods)
Jiro‘s pick this week is tracer4m by per isakson.I teach a training course on “Object-Oriented Programming (OOP) with...

fast 9 Jahre vor

Thumbnail

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

fast 9 Jahre vor | 0

Beantwortet
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...

fast 9 Jahre vor | 0

Veröffentlicht


Impressionism
Sean‘s pick this week is impressionism by David Mills. My pick this week is a fun one that takes your images and transforms...

fast 9 Jahre vor

Thumbnail

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 2

| akzeptiert

Gelöst


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

fast 9 Jahre vor

Gelöst


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

fast 9 Jahre vor

Beantwortet
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...

fast 9 Jahre vor | 7

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

fast 9 Jahre vor | 3

| akzeptiert

Veröffentlicht


Real-Time Pacer for Simulink
Sean‘s pick this week is Real-Time Pacer for Simulink by Gautam Vallabha. Contents Slow Down! Speed Up! Comments Slow...

fast 9 Jahre vor

Thumbnail

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

fast 9 Jahre vor | 4

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

fast 9 Jahre vor | 2

| akzeptiert

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

fast 9 Jahre vor | 2

| akzeptiert

Veröffentlicht


Extract text from PDF documents
Jiro‘s pick this week is “Read text from a PDF document” by Derek Wood.Ah, this is a nice entry. I was hoping for...

fast 9 Jahre vor

Thumbnail

Mehr laden