Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

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

7 years ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

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

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

7 years ago

Solved


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

7 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

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

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

7 years ago

Answered
Counting syllables in text from a txt file.
If i understand you right, try this. vowels={'A','I','O','U','E'}; hF=fopen('filename.txt'); %sum contains count of vow...

7 years ago | 0

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

7 years ago

Question


Error: subscript indices must either be real positive integers or logicals.
Hello, this part of function doesn't working and I don't have any idea why. hA=axes; hold on for i=1:length(Data) ...

7 years ago | 1 answer | 0

1

answer

Question


Analog VBA statement "with ... end with"
I need declare a lot (real many) fields of structure with long name. How i can do it without using loop? For example: Horr...

7 years ago | 0 answers | 0

0

answers

Answered
Infinite sum of a series
Try this. It seems you forgŠ¾t declare the |p|. syms z p r=2.5e-6/2; alpha= acosh(z/r); A= (2*sinh(((2*p)+1)*alp...

7 years ago | 0

Answered
data generation from given
Define |t|: t=[0:1e-3:1e-1]; Define |y|: y=10*sin(200*t)+20*cos(200*t.^2); Save data: %to txt fID = fopen('t...

7 years ago | 0

Answered
Modeling efflux time from a tank. Equation 11 in the attached document
I think it can be helpful. You have this function with |A, B, C, D| are known: fun = A * (dHdt)^2 + B * (dHdt)^1.75 + C *...

7 years ago | 0

Question


Access to parent object or problem with organize class
Hi, I need to attache some methods to the particular object |obj|. These methods stored to packages (folder with "+" in name)...

7 years ago | 1 answer | 0

1

answer