Solved

Smith numbers

Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at <http://en.wikipedi...

8 hours ago

Solved

Multiples of a Number in a Given Range

Given an integer factor _f_ and a range defined by _xlow_ and _xhigh_ inclusive, return a vector of the multiples of _f_ that fa...

9 hours ago

Solved

Area-01

Given the radius of the circle inscribed in a square, find the area that is not bounded by the circle but inside the square. ...

9 hours ago

Solved

Area-02

Given the radius of the circle inscribed in a square, find the area of the square that can be fitted perfectly in the corner. ...

9 hours ago

Solved

Take it out

Consider the integer number sequence N (1 to infinity). After each iteration, take out the (k+1)th elements; where k is the n...

9 hours ago

Solved

Odd row

Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...

9 hours ago

Answered

Why Matlab does not plot "for loop" generated vector?

Best to use arrays/vectors. c=7; n=12; u=0:.1:n; hours = (2.3/c)*((u/c).^1.3).*exp(-(u/c).^2.3)*(1-0.09)*8760; plot(u,hours...

Why Matlab does not plot "for loop" generated vector?

Best to use arrays/vectors. c=7; n=12; u=0:.1:n; hours = (2.3/c)*((u/c).^1.3).*exp(-(u/c).^2.3)*(1-0.09)*8760; plot(u,hours...

1 day ago | 0

Answered

sum of real numbers up to n using recursive code

function x = t_sum(n) x=1; if n>1 x=n+t_sum(n-1);%recursive end

sum of real numbers up to n using recursive code

function x = t_sum(n) x=1; if n>1 x=n+t_sum(n-1);%recursive end

1 day ago | 0

| accepted

Solved

Kolakoski Sequence

This is a modified version of the kolakoski sequence. Refer to the problem <https://www.mathworks.com/matlabcentral/cody/p...

1 day ago

Solved

Integer sequence - 2 : Kolakoski sequence

Get the n-th term of <https://oeis.org/A000002 Kolakoski Sequence>.

1 day ago

Solved

length of string on cylinder

A cylinder H cm high has a circumference of C cm. A string makes exactly N complete turns round the cylinder while its two ends ...

1 day ago

Solved

Keep Only the Upper characters in a string

Keep Only the Upper characters in a string s = 'Sreeram Mohan'; output = SM;

1 day ago

Solved

Leap Year

According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

1 day ago

Answered

true airspeed of different level

I am not sure if this is what you are looking for. g=9.81; d=[1.0587,.8198]; S=12.203; m=1204; cl=linspace(.6,1.4,20); hol...

true airspeed of different level

I am not sure if this is what you are looking for. g=9.81; d=[1.0587,.8198]; S=12.203; m=1204; cl=linspace(.6,1.4,20); hol...

1 day ago | 0

Answered

how to plot below equation get a curve starting from 0 to 100?

n=2; m=0;%you can change m to get different sets of graphs lambda=0:800;%0-800 alpha=linspace(0,0.02,7);%0-.02 hold on for ...

how to plot below equation get a curve starting from 0 to 100?

n=2; m=0;%you can change m to get different sets of graphs lambda=0:800;%0-800 alpha=linspace(0,0.02,7);%0-.02 hold on for ...

1 day ago | 0

Solved

Assignment Problem

Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

1 day ago

Answered

How to modify and improve this for-loop that I wrote?

RMSE=arrayfun(@(x)sqrt(mean((newcell{x}.rrr24(:)-newcell{x}.PRECIP(:)).^2)),1:numel(newcell))'; CC=arrayfun(@(x)corr(newcell{x}...

How to modify and improve this for-loop that I wrote?

RMSE=arrayfun(@(x)sqrt(mean((newcell{x}.rrr24(:)-newcell{x}.PRECIP(:)).^2)),1:numel(newcell))'; CC=arrayfun(@(x)corr(newcell{x}...

2 days ago | 1

| accepted

Solved

Wythoff Sequence

Find the lower Wythoff sequence up to n. For more information, <https://oeis.org/A000201>

2 days ago

Solved

remove numbers from a string

check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...

2 days ago

Solved

Zero

given an integer a, find the smallest possible integer b(b>0) such that their bitwise logical AND is zero. * if a=11(1011) t...

2 days ago

Solved

Gray code

Given a decimal number, convert it to its corresponding Gray code (see https://en.wikipedia.org/wiki/Gray_code). 8 -- 1100...

2 days ago

Solved

How many ways?

Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

2 days ago

Solved

Decimal to binary conversion (without using built-in function)

convert the given decimal number to its equivalent binary without using built-in function. * n=18 * out='10010'

2 days ago

Solved

Decimal Fraction to binary conversion

Given an fraction decimal number n, convert it to its equivalent binary number. If it is an infinite binary fraction, keep it...

2 days ago