Answered
保存した画像が白飛びしたようになる問題
@和神 水ノ江さんが間接的に教えて下さいました。(imshow関数の機能に気付かされ、本質問の原因が判りました) >この問題(画像が白飛びしたようになる問題)の原因は何なのでしょうか? ⇒ヒストグラム均等化(histeq)が期待通りに動作していない事で...

5 years ago | 1

| accepted

Answered
tableから新たなtableを作った際変数名が失われてしまう件について
「T2では維持されていた変数名がT3では失われてしまった」のではなく「T3の変数名(指定しなかったのでVar2, Var3)を(T2からの値コピーにより)変更できない」のです。何故T3の1列目の変数だけコピーできたかと言うと、T2をテーブルとしてT3に代入...

5 years ago | 2

| accepted

Solved


Draw 'S'
draw S using nxn matrix, where n is odd and greater than 4 S = [1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 ...

5 years ago

Solved


Cancel Middle
Write a function called cancel_middle that takes A, an n-by-m matrix, as an input where both n and m are odd numbers an...

5 years ago

Solved


Sort Except Zeros
Sort the numbers in a vector. But the position of zeros should not be changed. Example: sort_except_zeros( [5 3 0 0 2 4] ) == [...

5 years ago

Answered
文字認識した単語の画像を表示する
光学式文字認識 (OCR) を使用したテキストの認識 - MATLAB & Simulink - MathWorks 日本 イメージまたはビデオへのテキストの挿入 - MATLAB insertText - MathWorks 日本 添付ファイル3つは...

5 years ago | 2

| accepted

Answered
画像の全体サイズを変更せずに画像中の一部分のみを縮小する方法
org = rgb2gray(imread('apple.jpeg')); % 以下括弧内はImage Processing Toolboxの対応関数 WB = org < 253; % 二値化する(imbin...

5 years ago | 3

Answered
x軸上で、ある点が原点よりどちらにあるのかを検出するプログラム
>もし、三角形の重心が口の重心(原点)よりも右にあったら「左向き」というテキスト、左にあったら「右向き」といったテキストも出せるようになりたいです 単純に3つあると断定している連結要素のx座標をソートして、真ん中のx座標と三角形の重心点を比較しています。...

5 years ago | 0

| accepted

Answered
MATLAB appでのパネルの使い方について
>ライブラリ内のパネルについてですが、使い方がよくわかっていません パネル コンテナーの作成 - MATLAB uipanel - MathWorks 日本 パネルは「オブジェクト間に親子関係を持たせる要素」だと理解すれば良いと思います。パネルの中に例...

5 years ago | 2

| accepted

Answered
R2021aを使用して、直線と円弧の交​点を求める関数はありますか?
Intersections of circles in Cartesian plane - MATLAB circcirc - MathWorks 日本 Intersections of circles and lines in Cartesian pl...

5 years ago | 0

| accepted

Answered
CSVデータから列ごとに画像を生成するにはどうすれば良いですか?
数値データから画像を再現する方法について - MATLAB Answers - MATLAB Central (mathworks.com) 前回の質問の回答を踏まえ、列の数分ループさせる様にしました。 mytable = readtable('ans...

5 years ago | 2

| accepted

Answered
imcropでのエラー
変数名からの憶測ですが、imcrop関数に画像データを入力せずファイル名を入力しているからだと思います。 Imgfilename = 'test.png'; % Imgdata = imread(Imgfilename); % Imgfilename...

5 years ago | 1

| accepted

Answered
GUIアプリでウェブカメラの選択方法について
MATLAB AppDesignerで学ぶ顔認知と顔認識 - Qiita コメントで紹介されたアプリのソースコードや解説記事を読みました。既に質問する必要が無いのでは? スタートアップ関数で「webcamlist関数でウェブカメラリストを取得しドロップ...

5 years ago | 0

| accepted

Answered
GUIアプリの中で、ウェブカメラの不具合について
Error when running compiled application: Undefined function ’webcammex' - MATLAB Answers - MATLAB Central (mathworks.com): エラーメッ...

5 years ago | 1

| accepted

Answered
ラジオボタンによるプロット線の仕様変更について
App Designer を使用したアプリ開発 - MATLAB & Simulink - MathWorks 日本 線形 2 次元プロット - MATLAB plot - MathWorks 日本 >ラジオボタンでプロット線の仕様を適宜変更することは...

5 years ago | 1

| accepted

Solved


Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

5 years ago

Solved


Another colon problem
This is simple problem based on problems 555, 801, 1118, etc. Create an index vector from two input vectors. Example: ...

5 years ago

Solved


Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

5 years ago

Solved


Find the index of n in magic(n)
If input n=5, then magic(n) is 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22...

5 years ago

Solved


Power supply: 230V to 115V
The problem is simple: we have a wall outlet which supplies 230V and an apparatus that requires 115V. Software is always chea...

5 years ago

Answered
出力されるFigureの大きさについて
Figure ウィンドウの外観と動作の制御 - MATLAB - MathWorks 日本 Position — 描画可能領域の位置とサイズ:[left bottom width height] figure('Position', [100 100 ...

5 years ago | 0

| accepted

Solved


Find the index of the lowest number in a matrix
Take a matrix, and find the [row cal] index of the lowest number

5 years ago

Solved


Determine whether the input is divisible by 3 as well as 5
If the input is divisible by 3 as well as 5 then the output should be 'true' otherwise 'false'

5 years ago

Solved


Calculate Simple Intrest for given data
P,N,R stands for Principle amount, No. of years and rate of intrest resp. Calculate intrest I

5 years ago

Answered
顔の切り抜いた部分の重心を求めて、その点を結んだ三角形の面積を求めたい
重心位置の座標を表示したいのですが、どうやって組み合わせればいいのかわかりません - MATLAB Answers - MATLAB Central (mathworks.com) を参考にしました。regionprops関数で連結要素の重心を計算できま...

5 years ago | 1

| accepted

Answered
ROIオブジェクトの透明度を,部分ごとに変更できますか?
【結論】 楕円 ROI (images.roi.Ellipse オブジェクト)を楕円内部の複数か所に分割する事は不可能で、複数の透明度を設定する事も不可能です。多角形ROIなどを用いてROIを定義しては如何でしょうか? 【詳細】 楕円の関心領域 - ...

5 years ago | 0

| accepted

Answered
SimulinkモデルのSfunctionの解除方法を教えてください。
S-Function化は不可逆です。Undoが出来ないなら変換前のモデルを開くしかないと思います。 Simulinkモデルを配布する際、内部を他者に見られないように隠蔽化できますか? - MATLAB Answers - MATLAB Central (...

5 years ago | 0

| accepted

Answered
時系列データから条件抽出し、カウントや累積和を出す方法
① Index前後によって比較する方法:データ内容から「局所的ピークを検出」していると判断しました 局所的最大値 - MATLAB findpeaks - MathWorks 日本:3列目のピーク判定にはfindpeaks関数が最も適します。 局所的最...

5 years ago | 1

| accepted

Answered
stop関数の使い方について
MATLABにstopという関数はありません。(Simulinkにはあります:シミュレーションを中止する - MATLAB stop - MathWorks 日本) 目的が何らかのプロセスを停止する事なら、そのプロセスの制御を変更して停止させるべきだと思...

5 years ago | 0

| accepted

Solved


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

5 years ago

Load more