Answered

Extend a string within a for loop by values from switch case

No, MATLAB doesn't support Augmented addition, (using +=) However, you can obtain the same result with a variable, x=x+1; and u...

Extend a string within a for loop by values from switch case

No, MATLAB doesn't support Augmented addition, (using +=) However, you can obtain the same result with a variable, x=x+1; and u...

2 días ago | 1

| accepted

Solved

Cell Operator *

Please implement operator * for cell: >> {2,3} * 2 ans = 1×4 cell array [2] [3] [2] [3] >> {2,3} * [2 3]...

3 días ago

Solved

Prime Letters = Removing

Given a string, remove all the letters which in ASCII Code are prime numbers. For Example: s1 = 'Determine which array e...

3 días ago

Solved

Get the combinations

Consider p,q = 2 vectors of same or different length. Get a Output Array which has all the possible combinations of Elements o...

3 días ago

Solved

Concatenated roots

Which is the value of this infinte concatenated roots? <<https://s27.postimg.org/i4hkin7xf/Code_Cogs_Eqn.gif>> Note: If ...

3 días ago

Solved

Polynomial Evaluation

Create a routine that takes a list of coefficients of a polynomial in order of increasing powers of x; together with a value of ...

3 días ago

Answered

Replace nested loops with a matrix

Unew = zeros(nhx, nhy); Unew(2:nhx-1, 2:nhy-1)=U(2:nhx-1, 2:nhy-1)-dt.*(P(3:nhx,2:nhy-1)-P(1:nhx-2,2:nhy-1))./(2*hx); Source

Replace nested loops with a matrix

Unew = zeros(nhx, nhy); Unew(2:nhx-1, 2:nhy-1)=U(2:nhx-1, 2:nhy-1)-dt.*(P(3:nhx,2:nhy-1)-P(1:nhx-2,2:nhy-1))./(2*hx); Source

3 días ago | 0

Solved

Toeplitz Matrix

For a given square matrix of order n-by-n check whether this is a Toeplitz matrix or not. Return true if it is.

4 días ago

Answered

i try to print from (row, column) but I'm keep getting (row,row) for some reason.

You are getting this result because you have defined tables using horinzontal concatenation. table = [Names,Attempts]; Chang...

i try to print from (row, column) but I'm keep getting (row,row) for some reason.

You are getting this result because you have defined tables using horinzontal concatenation. table = [Names,Attempts]; Chang...

4 días ago | 0

Solved

Given n, create n random numbers such that their standard deviation is also n.

Given n, create n random numbers such that their standard deviation is also n.

4 días ago

Solved

Prime factor digits

Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

4 días ago

Solved

Twin Primes

Twin primes are pairs of primes that are immediately next to each other (difference of two). The lesser of twin primes are 3, 5,...

4 días ago

Solved

Closely related?

Given a function past_records() that will report blood sugar level of two twin brothers some random number of days ago. For exam...

4 días ago

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

4 días ago

Solved

Keep Only the Upper characters in a string

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

4 días ago

Solved

sort matrix

Given a matrix, sort it for each column, but cannot change the element of each row. for example input = [1 3; 2 4;1 5;3 6]; ...

6 días ago

Solved

Numbers in extended form

Shhhhhhh. Don't tell my daddy, but I'm borrowing his Cody account so all of you very smart people can help me out. I just star...

6 días ago

Solved

Reverse Calculator

Use this reverse calculator and give correct output Its simple, In my Reverse calculator if you press 0 it will be considered...

6 días ago

Solved

Ripping numbers apart!

So you have to "rip" a number apart into individual digits... The end output is a cell. That is if: x = 12345678 o...

6 días ago

Solved

Decode a simplified barcode

Given a bar code from this <http://www.mathworks.com/matlabcentral/cody/problems/602-make-a-simplified-bar-code exercise>: Re...

6 días ago

Solved

Implement simple rotation cypher

If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

6 días ago

Solved

Surface Fit z(x,y)

Given three vectors x,y,z. Find four coefficients c = [cxx cxy cyy c00], such that z = cxx*x.^2+cxy*x.*y+cyy*y.^2+c00. For e...

6 días ago

Solved

Find the elements of a matrix according to a defined property.

From A = [5,2,3] and B = [1,2,3,4,5,6,7,8,9,10] produce a vector C where : C(1) is the sum of the first A(1) elements of B, ...

6 días ago

Solved

Grandpa's telescope

Two grandkids Dorothy and Benjamin are sharing a telescope made by their grandpa, who used an old lens of spectacles as the obje...

6 días ago

Solved

Check if integer

Given a vector of elements, determine if each element is an integer and return true or false accordingly.

6 días ago

Answered

I could not integrate using MatLab, Can you please help me?

syms t a c fun = 3*2^(1/2)*(1 - cos(4*t))^(1/2)*(a^2 + c^2)^(1/2); z = int(fun,t); %gives indefinite integral %result of inte...

I could not integrate using MatLab, Can you please help me?

syms t a c fun = 3*2^(1/2)*(1 - cos(4*t))^(1/2)*(a^2 + c^2)^(1/2); z = int(fun,t); %gives indefinite integral %result of inte...

7 días ago | 0

| accepted

Solved

Wheat on a chessboard pt 2

If a chessboard were to have wheat placed upon each square such that x grains were placed on the first square and each successiv...

7 días ago

Answered

Modulo-2 matrix multiplication

size(X) = [1 6]; size(Y) = [3 3]; X and Y are not compatible for multiplcation given their sizes. You can do something like t...

Modulo-2 matrix multiplication

size(X) = [1 6]; size(Y) = [3 3]; X and Y are not compatible for multiplcation given their sizes. You can do something like t...

7 días ago | 0

| accepted