Community Profile

photo

Atsushi Ohashi

Last seen: Today Con actividad desde 2016

Followers: 0   Following: 0

Contacto

Estadísticas

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

Ver insignias

Feeds

Ver por

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

alrededor de 3 años hace | 0

| aceptada

Resuelto


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

alrededor de 3 años hace

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

alrededor de 3 años hace | 1

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

Resuelto


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

casi 5 años hace

Resuelto


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

casi 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Cargar más