Answered
【値の判別】データ内の値が、閾値より変化した場合の判別方法
data = [0 1 2 3 4 5; 2 2 0 0 0 0]' find(diff(data(:,2))) % 2列目の変化がある箇所を検索する

4 years ago | 1

| accepted

Answered
変化率を設定したい
> 3[1/30[s]]の変化率制約を設けたいです ⇒下記の設定で3[1/30[s]]の変化率に制約されます

4 years ago | 0

| accepted

Solved


Draw 'P' !!!
Draw a n by n matrix 'P' using 0s and 1s. (n is odd and greater than 4) if n=5 , then the output will be [1 1 1 1 1 1 0 0 0...

4 years ago

Solved


Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

4 years ago

Answered
polyfitの結果がNaNと表示される
ドキュメンテーションによると、下記の原因があります。 原因:多項式の曲線近似 - MATLAB polyfit - MathWorks 日本 (出力引数 p — 最小二乗近似多項式の係数) % x または y のいずれかに NaN 値が含まれ、n < ...

4 years ago | 0

Answered
特定の画像ファイル名の表示、分類されたイメージ表示の方法
How to access image name in imageDatastore? - (mathworks.com) ①画像自体のファイル名(例:001.jpg)を画像下に追加するにはどうすればよいでしょうか 画像ファイル名(フルパス)はセル配列...

4 years ago | 0

Solved


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

4 years ago

Solved


Convert degrees to radians
Given input in degrees, output to radians

4 years ago

Solved


Find out magnitude of vector
Find out magnitude of vector. Say x=[1 2 3], then answer must sqrt(1^2+2^2+3^2) Please don't use sum function. If you l...

4 years ago

Solved


Complex transpose
Calculate the transpose of a matrix having complex numbers as its elements without changing the signs of the imaginary part. ...

4 years ago

Solved


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

4 years ago

Answered
x軸を上下二軸にしたいです.上のx軸は下のx軸に対応しているようにしたいです.
座標軸の外観と動作 - MATLAB - MathWorks 日本 ax2.XLim = [0 1]です。(追加したax2軸のデフォルト範囲) ax2.XTick = x_Tlabel(2:end)の値が上記の範囲を超えていませんか? 'XT...

4 years ago | 1

| accepted

Solved


Gray Image

4 years ago

Solved


Flip the Image

4 years ago

Answered
長方形の画像(JPG)をレターボックス処理を行い正方形にしたいのですが、可能でしょうか?
レターボックス (映像技術) - Wikipedia 入力画像の幅・高さの内大きい方のサイズに合わせた正方形の黒い画像の中央に元画像をコピーします。 I = imread('peppers.png'); sz = size(I); % 画像の幅・高さ...

4 years ago | 2

| accepted

Solved


Dot Product

4 years ago

Solved


Find 100 from a Matrix and Replace With 0 with less computation time
pls use this matrix x = [208 40 167 180 112 70 192 215 90 19 231 100 9 100 97 100 ...

4 years ago

Solved


Get the combinations
Consider p,q = 2 vectors of same or different length. Get a Output Array which has all the possible combinations of Elements o...

4 years ago

Answered
for文にテキストボックスの値を入れてループさせる方法を教えてください。
① Y(from,to) = 0.0400 - 1.7992i のfromとtoの添え字が無く、fromやtoの行列全体を指定する事になるので:Y([1,2,2,3,3,4,1,2,3,4], [2,1,3,2,4,3,1,2,3,4]) = 0.0400...

4 years ago | 0

| accepted

Answered
3940649673945355 * 3 の計算が合いません。
>どうして 1.821949021836065e+15 ではなく1.821949021836064e+15 となるのでしょうか。 MATLABがデフォルトで用いるdouble型(倍精度浮動小数点数(64bit))で表現できる有効桁数を超えたからです。 ...

4 years ago | 1

| accepted

Solved


Special Relativity 101.
Special relativity states that the effective mass of an object varies as a function of its velocity. If *c* is the speed of ligh...

4 years ago

Solved


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

4 years ago

Solved


Step up
For given input array, output a array with all elements step up by two

4 years ago

Solved


Create sine function out of cosine
Please don't use sin(x) directly

4 years ago

Solved


Pluralization
Define function plu(n) that returns '' (an empty string) if n=1, or 's' otherwise. This is handy for displaying messages from a...

4 years ago

Solved


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

4 years ago

Solved


Size of this cup?
The given vector has diameter of the cup in mm sampled at micrometer increments in depth from top to bottom, need output in cc a...

4 years ago

Solved


Small Riddle
Mr. Smith has two children. If the older child is a boy, what are the odds that the other child is also a boy?

4 years ago

Solved


Join Strings with Multiple Different Delimiters
The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

4 years ago

Load more