Community Profile

photo

Atsushi Ohashi

Last seen: Today Aktiv seit 2016

Followers: 0   Following: 0

Kontakt

Statistiken

All
  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer
  • Personal Best Downloads Level 1
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 1
  • First Submission
  • Solver

Abzeichen anzeigen

Feeds

Anzeigen nach

Beantwortet
画像処理後,面積などを抽出して保存する
regionprops は戻り値が構造体になりますので、fprintfで値を書き込むには構造体の要素を指定します。 BWを求めたあとのサンプルのスクリプトになりますので、ご参照ください。 % Area, MajorAxisLength, Centroi...

etwa 3 Jahre vor | 0

| akzeptiert

Gelöst


Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

etwa 3 Jahre vor

Beantwortet
グラフのy座標の値(1点)を返す関数ってありますか??
関数の式を無名関数として定義し、それを利用してはいかがでしょうか。 https://jp.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html >> f = @(x) 2*x;...

etwa 3 Jahre vor | 1

Beantwortet
VideoReaderを使って動画を再生したいが、容量オーバーのエラーが出る
連続する配列領域として大きすぎるため、配列を確保しようとするとページングが発生し、長い処理時間がかかるようになり、結果としてMATLABが反応しなくなる危険があるため、エラーとなっております。 ワークスペース変数で利用できる配列サイズは下記に記載がありま...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
for分を使用して複数の画像を処理する方法について
保存するファイル名をfor文の中で”o”をインクリメントされていますが、for文の中で毎回"o"をゼロで初期化しているため、同じファイル名に上書きしていると思います。ファイル名を一意にするよう修正をご検討ください。 for size=7:8%圧縮2 ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
simulinkでenableブロックを用いるとシミュレーションが極端に遅くなる
直接の解決策の回答にならず恐縮ですが、Simulationが遅くしている可能性のある要因を見つける手段としてパフォーマンスアドバイザーを利用があります。これで遅くなっている原因がわかれば解決する手段が見つかるかもしれません。 (Simulationが遅く...

mehr als 3 Jahre vor | 0

Beantwortet
StateFlowの変数にアクセスする
Stateflow APIのfindメソッドで既存のStateflowオブジェクトを探せます。 % モデルのオブジェクトを取得 obj = get_param(bdroot, 'Object'); % モデル内からChartブロックを探す objC...

mehr als 3 Jahre vor | 0

Beantwortet
オーバーフローした値を飽和させずにラップさせる
Fixed-Point Designer Toolbox をお持ちであればオーバーフローの設定をカスタマイズすることができます。 F = fimath('RoundingMethod','Floor','OverflowAction','Wrap'); ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
2次元プロットをアニメーション化する方法
プロットのアニメーション化のページを参考に作成してみてはいかがでしょうか? https://jp.mathworks.com/help/matlab/animation-1.html 流れとしては、 1.A,B,Cのデータをセル配列にまとめる 2....

mehr als 3 Jahre vor | 0

Beantwortet
XML構造体配列の複数Fieldの中のそれぞれのField格納されている要素の取得
ご質問の回答そのものではないかもしれませんが、ご懸念はForループの回数が多くなることで実行速度が遅くなることだと思いますので、For文の回数が減る回答とさせてください。 XMLを構造体の形にせず、XMLファイルを読み込んで該当するノードのみを取得し、そ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
csvreadをMATLAB coderでコード生成するには
fopen, fgetlを使ってCSVファイルを読み込むサンプルになります。 1行ずつファイルからデータを読み込んで、カンマで文字列を分割したあと、数値へ変換しています。 下記のコードをMATLAB Coderで実行はできました。C言語でCSVの読み込...

mehr als 3 Jahre vor | 1

Beantwortet
3次元配列を指定した範囲で平均化
brockproc 関数とMean関数を組み合わせる方法があります。 3x3(9要素)のブロックごとにX,Y,Zのそれぞれの平均値を求めます。ステレオ画像で値がなかった画素は数値がNaNになっていると思いますので、平均値を求めるときにNaNは除外します。...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
グラフと写真を合わせる
Line関数で画像上にプロットを描く手段はいかがでしょうか。 BackImName='RectifiedPhotos/Photo3/RectifiedPhoto-H2018-02-17-003.png'; file=csvread('modifiedd...

mehr als 3 Jahre vor | 0

Beantwortet
音声ファイルの無作為抽出について
音声ファイル名を1つのセル配列にまとめ、randi 関数を使ってインデックスを求める方法がございます。 % ファイルをセル配列に格納 cellFiles = {'001.wav', '002.wav', '003.wav'}; % ランダムなインデッ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
画像を分割し各セグメントの平均値を出したい。
1枚の画像を指定したサイズで分割し、それぞれの分割したブロックごとで処理を実行するには brockproc 関数がご利用になれます。 brockproc 関数ではユーザが指定した関数を指定したサイズで画像を分割したブロックに対して実行することができます。...

mehr als 3 Jahre vor | 0

| akzeptiert

Gelöst


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

fast 5 Jahre vor

Gelöst


Add a block to a model
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

fast 6 Jahre vor

Gelöst


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

mehr als 6 Jahre vor

Gelöst


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

mehr als 6 Jahre vor

Gelöst


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

mehr als 6 Jahre vor

Gelöst


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

mehr als 6 Jahre vor

Gelöst


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

mehr als 6 Jahre vor

Gelöst


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

mehr als 6 Jahre vor

Gelöst


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

mehr als 6 Jahre vor

Gelöst


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

mehr als 6 Jahre vor

Gelöst


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

mehr als 6 Jahre vor

Gelöst


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

mehr als 6 Jahre vor

Gelöst


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

mehr als 6 Jahre vor

Gelöst


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

mehr als 6 Jahre vor

Gelöst


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

mehr als 6 Jahre vor

Mehr laden