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

plus de 8 ans il y a | 2

Publié le


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

plus de 8 ans il y a

Thumbnail

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

plus de 8 ans il y a | 4

| A accepté

Publié le


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

presque 9 ans il y a

Thumbnail

Publié le


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

presque 9 ans il y a

Thumbnail

Publié le


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

presque 9 ans il y a

Thumbnail

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

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

Réponse apportée
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> ...

presque 9 ans il y a | 2

Publié le


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

presque 9 ans il y a

Thumbnail

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

presque 9 ans il y a | 0

Réponse apportée
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...

presque 9 ans il y a | 0

Publié le


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

presque 9 ans il y a

Thumbnail

Réponse apportée
How to extract image pixel region by image index value ?
im_region = im(id1:id2,id3:id4);

presque 9 ans il y a | 0

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

presque 9 ans il y a | 2

| A accepté

A résolu


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

presque 9 ans il y a

A résolu


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

presque 9 ans il y a

Réponse apportée
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...

presque 9 ans il y a | 7

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

presque 9 ans il y a | 3

| A accepté

Publié le


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

presque 9 ans il y a

Thumbnail

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

presque 9 ans il y a | 4

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

presque 9 ans il y a | 2

| A accepté

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

presque 9 ans il y a | 2

| A accepté

Publié le


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

presque 9 ans il y a

Thumbnail

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

presque 9 ans il y a | 3

| A accepté

Publié le


What are the functional inputs and outputs of my Simulink model?
Greg’s pick this week is Signature Tool by McSCert. Simulink enables you to layout rather large and diverse diagrams. For...

presque 9 ans il y a

Thumbnail

Publié le


Fidget Spinner
Sean‘s pick this week is Fidget Spinner (Simscape Multibody) by Pavel Roslovets.   It wasn’t even a couple months ago that...

presque 9 ans il y a

Thumbnail

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

presque 9 ans il y a | 1

| A accepté

Publié le


Classifying old Japanese characters using CNN
Jiro‘s pick this week is CNN for Old Japanese Character Classification by one of my colleagues Akira Agata.Nowadays, I...

presque 9 ans il y a

Thumbnail

Publié le


Source Control Information Block
Richard is Consulting Engineer at MathWorks focused on the Embedded Coder product for code generation, primarily in the...

presque 9 ans il y a

Thumbnail

Charger plus