count upper and lower case characters
In a given input string, count and return the number of upper and lower case characters as u and l respectively.
For example:...
5年弱 前
解決済み
Basic Quadratic Equation
Create the equation:
y=(3x)^2+(5x)+35
and compute y for various values of x
surface areas of a cylinder
There are 3 inputs: option, radius and height. If option= '1', compute the lateral surface area of the cylinder, for option 2 ca...
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...
Save variables
a=[1]
Save variable a that is located in workspace into current folder. File name should be 'a.mat'
5年弱 前
解決済み
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...
5年弱 前
解決済み
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.
5年弱 前
解決済み
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)
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...
5年弱 前
解決済み
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 ...
5年弱 前
解決済み
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...
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...