Solved

Find the alphabetic word product

If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

mer än 7 år ago

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

mer än 7 år ago

Solved

Given a 4x4 matrix, swap the two middle columns

If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

mer än 7 år ago

Solved

Alternating sum

Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

mer än 7 år ago

Solved

CONVERT TAN TO SIN

In a right angle triangle ABC given the tan(A) then find sin(A) For example tan(A)=3/4 then sin(A)=3/5

mer än 7 år ago

Solved

Derivative of polynomial

Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

mer än 7 år ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

mer än 7 år ago

Solved

Sort a list of complex numbers based on far they are from the origin.

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

mer än 7 år ago

Solved

Back and Forth Rows

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

mer än 7 år ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

mer än 7 år ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

mer än 7 år ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

mer än 7 år ago

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

mer än 7 år ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

mer än 7 år ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

mer än 7 år ago

Answered

n term series using For loop

Check this link: <http://www.mathworks.se/help/matlab/ref/for.html>

n term series using For loop

Check this link: <http://www.mathworks.se/help/matlab/ref/for.html>

mer än 7 år ago | 0

Question

Is the One-sided Spectrum from Spectrum Scope scaled ?

I have computed the power spectral density in a MATLAB function block in parallel with the SIMULINK Spectrum Scope. For both I t...

mer än 7 år ago | 0 answers | 0

Question

SL MATALB function block a bus-capable block ?

Hi, I'm trying to extract some parameters (2 out of 7) from a bus signal and use them in my code in the MATLAB function block. T...

mer än 7 år ago | 1 answer | 0

Question

builddocsearchdb command does not work in this case ?

Hi, i have created my own toolboxes documented them (with hmtl's, help sections and hyperlinks) as described in |<http://www.m...

ungefär 8 år ago | 0 answers | 0

Question

Extend own created documentation to help browser ?

I have made my own toolbox. And added documentation to it. I can access the files by both: * Typing |help myfunctionname| in ...

ungefär 8 år ago | 0 answers | 0