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

4년 초과 전 | 1

| 수락됨

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

4년 초과 전 | 0

| 수락됨

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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

4년 초과 전

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

4년 초과 전 | 0

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

4년 초과 전 | 0

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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년 초과 전

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

4년 초과 전 | 1

| 수락됨

문제를 풀었습니다


find the index of local maximum in matrix

4년 초과 전

문제를 풀었습니다


Gray Image

4년 초과 전

문제를 풀었습니다


Flip the Image

4년 초과 전

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

4년 초과 전 | 2

| 수락됨

문제를 풀었습니다


Dot Product

4년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

답변 있음
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년 초과 전 | 0

| 수락됨

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

4년 초과 전 | 1

| 수락됨

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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

4년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

더 보기