Rotate Matrix @180 degree
Rotate Matrix @180 degree
Example
A=[8 1 6; 3 5 7; 4 9 2], then answer would be
[2 9 4;...
4年弱 前
解決済み
Compound interest - number e
A moneylender wants to receive his annual interest of 12% more frequently.
If he receives his interest rate every six months,...
4年弱 前
解決済み
Sum the Infinite Series II
For any x in the range 0 < x and x < 2*pi radians, find the sum of the following infinite series:
c = 1 + 1/2*cos(x) + 1/2*3/4...
Find the stride of the longest skip sequence
We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....
4年弱 前
解決済み
Sum the Infinite Series
Given that 0 < x and x < 2*pi where x is in radians, write a function
[c,s] = infinite_series(x);
that returns with the...
4年弱 前
解決済み
Interpolate scattered data.
Most data was scattered, and there is no gird.
There are three data [c] in three different area [x,y].
x=[1 3 4];
y=[1 ...
4年弱 前
解決済み
Usage of varargout
This Challenge is to demonstrate usage of varargout.
Output a cell array using varargout of magic squares of size 1 thru n.
...
With apologies to William Blake
Coder Coder, typing fast
Sitting at your desk, aghast.
What immortal MATLAB script
will solve this problem, nice and qu...
4年弱 前
解決済み
Big numbers, least significant digits
Given two numbers, x and n, return the last d digits of the number that is calculated by x^n. In all cases, d will be the number...