Solved


Vector creation using linspace
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use linspace.

5 years ago

Solved


Vector creation using colon operator
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use the colon (:) operator.

5 years ago

Solved


Logarithmically spaced vector creation using logspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Use the logspace operator.

5 years ago

Solved


Logarithmically spaced vector creation using linspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Avoid using logspace and use the linsp...

5 years ago

Solved


Stacking vectors into a matrix
Given a 4x1 vector a, and a 2x2 matrix b, create a matrix M in which the first 2 rows are each identical to a and the last two r...

5 years ago

Solved


Area of a pentagon
Given the side of a regular pentagon and its apothem return the area of pentagon. Remember the area of pentagon is calculate ...

5 years ago

Solved


An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?
area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the ...

5 years ago

Solved


Find the average of a random sequance
Write a function that generates random integers within a loop, and calculates the mean of the positive numbers only. At each ...

5 years ago

Solved


Find the largest number
Find the largest number |x| among 4 numbers given as variables |a|, |b|, |c|, and |d|. Example: Input: a = 4; b = 7; c ...

5 years ago

Answered
How to set elements in 2D matrix based on a given vector?
x = zeros(3); y = [3;1;2]; x(sub2ind(size(x),1:size(x,1),y')) = 1;

5 years ago | 1

| accepted

Solved


Function - Cylinder Surface Area
The goal

5 years ago

Answered
Cell array and double array
I think your script file which is from your supervisor contains 'xlsread' function that is not recommended anymore. (Not recomm...

5 years ago | 0

Solved


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

5 years ago

Solved


Polar Form Complex Number Entry
Write a function that takes the magnitude and angle(in degrees) of a complex number and returns a complex variable. Positive ang...

5 years ago

Solved


Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

5 years ago

Solved


Get the mean digit
Write a function that gives the mean digit (round towards nearest integer) of an input and positive number. For example: x ...

5 years ago

Solved


"Find out the best cricket"
This is how I originally read Problem 2013, so let's just go with it. Give me the first and last name of the best cricket, rega...

5 years ago

Solved


Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

5 years ago

Solved


swap sign sum & multiply castles
* It is an easy problem, if you know the answer. * Given a square matrix of NxN ordinary numbers. * Initially place N identi...

5 years ago

Solved


Divide elements by sum of elements
In this problem, I ask you to write a function which will divide the elements of each column by the sum of the elements of the s...

5 years ago

Answered
二つのdatetime時刻をコンマ7桁単位で取得した時の関数での相違点
>なぜこのような結果になったのか 誤差 - Wikipedia ->浮動小数点数間の減算において桁落ちが発生している為です。 一つの変数内で年,月,日,時,分,秒も計算する必要が有る方法と無い方法の2通りで差分0.0002秒を得ようとしている為です。 ...

5 years ago | 0

| accepted

Solved


DC chopper
Input x is the sampled signal vector, may have both AC and DC components. output vector y should have AC components removed then...

5 years ago

Solved


Find the number of days in a given year
Given a year number (eg. 2000) as input, find how many days are there in the given year.

5 years ago

Answered
自己学習形式コース ディープラーニング入門の5.1について
>17行目のwormsnet = trainNetwork(trainds,lgraph,topts) で 「関数または変数 'topts' が認識されません。」 'topts'は'options'の誤記ではないでしょうか? > 18行目のpreds ...

5 years ago | 3

Answered
figure関数のX軸の指定
x 軸の範囲の設定とクエリ - MATLAB xlim - MathWorks 日本 >xticklabelsを使う方法ではなく、xlimでそれは可能でしょうか。 xlimは x 軸の範囲を設定するもので、目盛りの表示方法に関わるものではありません。し...

5 years ago | 1

Answered
datファイルからの音響スペクトログラム解析
>Matlabでは,datファイルの状態から,音響スペクトログラム解析をすることは可能でしょうか? 音響スペクトログラム解析は可能ですが、質問文のdatファイルを読み込めるかどうかが判りません。 >また,datファイルをwavファイルに変換することは可...

5 years ago | 2

Answered
for文のindexに構造体配列の要素を使いたい
構造体配列 - MATLAB - MathWorks 日本 time = struct('k',0); time.k = struct('val',0); のように構造体を定義すれば動作します。

5 years ago | 1

Answered
切り取った小さな画像を大きな画像の任意の場所に貼り付ける
>私がやろうとしていることはmatlabで可能でしょうか? 元のカラー画像に、グレースケールのモザイクを、カラーに戻して貼り付け→貼付は可能、色の復元は難しい 元のカラー画像に、グレースケールのモザイクを、そのまま貼り付け→可能 2.「グレースケール...

5 years ago | 1

| accepted

Load more