已解决


Create tangent function out of cosine only
Please don't use tangent and sine functions

3 years 前

已解决


Solve equation numerically
y'=y In order to solve equation using computer, numerical analysis are needed. 1st order Euler's method is one of the metho...

3 years 前

已解决


Calculate inverse matrix in m by n matrix
x=(1:10)' y=roundn(2*x+7*rand(size(x)),-1) a*x=y Estimate a using inverse matrix calculation. This is principle of li...

3 years 前

已解决


Save variables
a=[1] Save variable a that is located in workspace into current folder. File name should be 'a.mat'

3 years 前

已解决


Solve system of equation!
Given provided system of equation, and find x and y. System of equation can be expressed as each term's coefficient. For exam...

3 years 前

已解决


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

3 years 前

已解决


Calculate numerical integration.
x=0:0.01:1 y=@(x)x.^2 Using given two inputs(x and y), conduct numerical integration in x. (hint: trapz)

3 years 前

已解决


Create tangent function out of sin and cos
Please don't use tan(x) directly

3 years 前

已解决


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

3 years 前

已解决


Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

3 years 前

已解决


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

3 years 前

已解决


Circular Shift Me
Given a vector v=[1 3 6 9 11], circular shift them while iterating m=[1 3 6 9 11; 11 1 3 6 9; 9 11 1 3 6; 6 9 11 1 3; 3 6 9 1...

3 years 前

已解决


Create cosine function out of sine
Please dont use cos(x) directly

3 years 前

已解决


Create a matrix X, where each column is a shifted copy of the vector v
Example : in->v = (1:5)'; 1 2 3 4 5 out-> [1 5 4 3 2;2 1 5 4 3;3 2 1 5 4;4 3 2 1 5;5 4 3 ...

3 years 前

已解决


Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

3 years 前

已解决


Matrix of almost all zeros, except for main diagonal
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...

3 years 前

已解决


Find Sine Function

3 years 前

已解决


Multiply by 14

3 years 前

已解决


multiply by 7

3 years 前

已解决


Round to nearest integer

3 years 前

已解决


Calculate cosine without cos(x)
Solve cos(x). The use of the function cos() and sin() is not allowed.

3 years 前

已解决


Determine if input is a perfect number
A <http://en.wikipedia.org/wiki/Perfect_number/ perfect number> occurs whent the sum of all divisors of a positive integer, exce...

3 years 前

已解决


Alternately upper-lower case
Modify the string to alternate between upper and lower case. For example, s='achyuta' output='AcHyUtA'

3 years 前

已解决


interesting center of magic matrix
output the centre of magic matrix of n input=7; output=25

3 years 前

已解决


execute the declaration in strings and return value
execute the commands in strings and return value input='a=23' output=23

3 years 前

已解决


most frequent character
Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...

3 years 前

已解决


union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

3 years 前

已解决


Diagonal & Anti-Diagonal Matrix: Easy
Create a matrix as shown below from "magic" square. For example: if input x=9;then use mgic(x) and create the matrix...

3 years 前

已解决


Upper triangular matrix
Create a function to retrieve the upper triangular matrix of a matrix (without using tril). The matrix will always be square. ...

3 years 前

已解决


Put Two 1D matrices into one 1D matrix
Example: If input a = [1 2 3 4 5]; input b = [10 9 8 7 6]; then output will be, y_correct = [1 10 2 9 3 8 4 7 5...

3 years 前

加载更多