Community Profile

photo

Atsushi Ohashi

Last seen: Today 自 2016 起处于活动状态

Followers: 0   Following: 0

联系

统计数据

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

查看徽章

Feeds

排序方式:

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

3 years 前 | 0

| 已接受

已解决


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

3 years 前

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

3 years 前 | 1

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

3 years 前 | 0

| 已接受

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

3 years 前 | 0

| 已接受

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

3 years 前 | 0

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

3 years 前 | 0

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

3 years 前 | 0

| 已接受

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

3 years 前 | 0

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

3 years 前 | 0

| 已接受

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

3 years 前 | 1

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

3 years 前 | 0

| 已接受

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

3 years 前 | 0

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

3 years 前 | 0

| 已接受

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

3 years 前 | 0

| 已接受

已解决


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

5 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

已解决


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

6 years 前

加载更多