Answered
imageにおける、各要素の特定の値に対応した配置について
<https://jp.mathworks.com/help/matlab/ref/pcolor.html |pcolor|> を使うと非線形の X,Y の位置指定ができます。ただ、image 関数と仕様が違うので多少設定をいじる必要があります。以下のサン...

8 years ago | 3

| accepted

Answered
ハフ変換で求めた直線の式
「直線の式」とウェブで検索すると2点を通る直線の式の求め方、というページがいくつか見つかります。 <https://jp.mathworks.com/help/images/ref/houghlines.html#outputarg_lines |h...

8 years ago | 2

Published


getElevations
Will‘s pick this week is getElevations by Jaroslaw Tuszynski. Always a fan of simple, effective utilities, I couldn’t pass...

8 years ago

Thumbnail

Answered
sfit型からの3次元等高線の作成
|sfit| オブジェクトを使って |X| と |Y| のグリッドに対して再評価し、 |contour3| を呼べば良いと思います。 xx = linspace(min(x),max(x)); yy = linspace(min(y...

8 years ago | 2

| accepted

Published


Get Computer MAC Address
Sean‘s pick this week is Get Computer MAC Address by Xiangrui Li. What is a MAC Address and what is it used for? I like...

8 years ago

Thumbnail

Answered
エクセルファイルを読み込み、グラフの上からプロットするには。
既にグラフが存在するとして、こんな感じでしょうか。 ex_data = xlsread('file.xls'); % エクセルから数値データをインポート hold on % ...

8 years ago | 2

| accepted

Answered
2直線の交点
「2直線の交点」とウェブで検索すると公式が結構出てきますよ。 MATLAB のコマンドを使うというより数学的に解くのが良いかなと思います。こんな感じでしょうか。 既知:k1, x1, y1, k2, x2, y2 y1 = k1*x1...

8 years ago | 2

Published


QR Code Encoder/Decoder
Jiro‘s pick this week is QR Code encode and decode by Lior Shapira.On October 31, we held our biggest annual event of the...

8 years ago

Thumbnail

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

8 years ago | 1

| accepted

Published


Easy design iteration sweeps for Simulink models
Greg’s pick this week is STOICAL by Reinhold. Simulink is well suited for laying out block diagrams of system simulations....

8 years ago

Thumbnail

Published


Mex Multithreading
Sean‘s pick this week is Mex Multithreading by Dirk-Jan Kroon. My pick this week is an example of how to write...

8 years ago

Thumbnail

Published


Labeling Data Points
Jiro‘s pick this week is labelpoints by Adam Danz.This week’s entry caught my attention for two reasons. One is that this...

8 years ago

Thumbnail

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

8 years ago | 2

| accepted

Published


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

8 years ago

Thumbnail

Published


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

8 years ago

Thumbnail

Published


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

8 years ago

Thumbnail

Published


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

8 years ago

Thumbnail

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

8 years ago | 1

| accepted

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

8 years ago | 2

Published


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

8 years ago

Thumbnail

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

8 years ago | 4

| accepted

Published


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

8 years ago

Thumbnail

Published


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

8 years ago

Thumbnail

Published


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

8 years ago

Thumbnail

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

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

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

8 years ago | 2

Published


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

8 years ago

Thumbnail

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

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

8 years ago | 0

Load more