Answered
ERROR : Unrecognized function or variable , Index exceeds the number of array elements
This line: sin(theta_b) = 1/sqrt(1+er1/er2); is not valid syntax because you cannot assign a value to sin(theta_b). If you wan...

4 years ago | 0

| accepted

Solved


Map all the indices of an Array Indices into a Vector giving Index vs Row and Column
Create an array of the row and column values for the indices of an array. This is typically performed using [r c]=ind2sub(siz...

4 years ago

Solved


Accumulate Cells
Given a combining function, a cell array, and an initial value, accumulate the result. For example, accumcell(@plus,{1,...

4 years ago

Solved


3n + 1 Problem (a.k.a The Collatz Conjecture)
The 3n + 1 problem (a.k.a The Collatz Conjecture) Consider the following algorithm to generate a sequence of numbers. Start wit...

4 years ago

Solved


Check if a matrix Diagonal is equal to its secondary diagonal
Your function should return True if the secondary diagonal is equal to diagonal, and False otherwise. Eg: M = [1 2 1 ...

4 years ago

Solved


Add the number of horizontal and vertical movements to each matrix element
Given n, create a square matrix and with element (1,1) = 1, add 1 to each element for each horitizonal and vertical movement. E...

4 years ago

Solved


Which Prime
Given two prime numbers, specify the relation between them i.e. - 'Twin Prime', 'Cousin Prime', 'Sexy Prime' or 'None'

4 years ago

Solved


Draw the symbol '+'
Draw '+' in an x-by-x matrix (where x is odd and x >3) Example: x = 5 y = [0 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 ...

4 years ago

Solved


find the index of a number

4 years ago

Solved


number play

4 years ago

Solved


Find the summation, mean, median, mode and standard deviation of a given array.
An array is given. Find out the summation, mean, median, mode and standard deviation of a given array. If x=[1,2,2,3,3,3,4,4,4,...

4 years ago

Solved


Half the length of the vector

4 years ago

Solved


Draw 'P' !!!
Draw a n by n matrix 'P' using 0s and 1s. (n is odd and greater than 4) if n=5 , then the output will be [1 1 1 1 1 1 0 0 0...

4 years ago

Solved


print

4 years ago

Solved


step function

4 years ago

Solved


Logarithmically spaced vector creation using linspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Avoid using logspace and use the linsp...

4 years ago

Solved


imaginary

4 years ago

Solved


Real

4 years ago

Solved


Effective Nuclear Charge

4 years ago

Answered
How can i add to this on screen keyboard code to make backspace, clear and space buttons
Take a look at the following. [The space didn't work right because strcat() strips leading and trailing whitespace from characte...

4 years ago | 0

Answered
Plot piecewise function with couple of kink points
You can use logical indexing for this: beta=0.9; r=(1-beta)/beta; i2=4; sigma1=0.1; sigma2=0.2; sigma3=0.7; v=0.5; i1 ...

4 years ago | 0

| accepted

Answered
i want to replace 2 pixels in the matrix by using this function between two pixels throw me this error
Is this what you mean to do? for k=1:ch2 for i=1:r2 for j=1:c2 if New_im(i,j,k) > New_im(i+3,j,k) ...

4 years ago | 0

Answered
Error trying to plot two different graphs
Calling subplot() deletes any axes already in your figure (except axes created with a previous subplot() call), so you should pr...

4 years ago | 0

Answered
What is a simple way to create an image of a custom color?
pixels = repmat(reshape(uint8([187,173,160]),[1 1 3]),500,500); or pixels = repmat(permute(uint8([187,173,160]),[1 3 2]),500,5...

4 years ago | 0

Load more