Answered
Delete specific rows in a multidimensional matrix
The solution for your problem could be: Z=rand(800,1,100)*400; for(k=800:-1:1) if(or(Z(k,1,:)>=230,Z(k,1,:)<=330)...

5 years ago | 1

Answered
Hey please assist me with plotting this function, not sure why im getting indexing error
You are missing a multiplying symbol y1=(3/10)*(1-exp(-6*t) [.*] (cos(sqrt(14*t))+(((3*sqrt(14))/7)*sin(sqrt(14*t))))) ...

5 years ago | 0

Answered
Interfacing between MATLAB and PowerPoint through Visual Basic or VBA macros to group shapes in VBA
You always can make an array with the names to have a known type: [a1.Name,a2.Name]

5 years ago | 0

Answered
Best way to sort a 3-d matrix by one column?
I am not sure if this is what you want: matrix(:,33,2) = sort(matrix(:,33,2));

5 years ago | 0

Answered
How to plot a triangle with the user's measurments?
Just try: ang = acos((a^2+b^2-c^2)/(2*a*b)) if(isreal(ang)) plot([0,a,b*cos(ang),0],[0,0,b*sin(ang),0]) end ...

5 years ago | 0

| accepted

Answered
Iteratively save data to mat file
First, use the -nocompression option for the save operator if you have a lot of info. Maybe you could improve your performanc...

5 years ago | 0

Answered
Unable to convert 'sym' value to 'double'. after using solve
I have not much info with this... but, I guess tcr = constant * (DELTA_CR - constant). That means tcr doesn't have a double valu...

5 years ago | 0

Answered
How can I simulate a circuit?
You have two options: - Model the system to extract the differential equations and the use a solve to find the temporal behav...

5 years ago | 1

| accepted

Question


why symbolic variables always size 8 bytes?
Each time I want to know how big a symbolic formula or variable is, it always return 8 bytes. I have tracked this issue from M...

5 years ago | 1 answer | 0

1

answer

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

5 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

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

6 years ago

Solved


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

6 years ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

6 years ago

Solved


Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

6 years 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 years ago

Solved


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

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

6 years ago

Solved


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

6 years ago

Solved


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

6 years ago

Solved


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

6 years ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

6 years ago

Solved


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

6 years ago

Solved


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

6 years ago

Solved


5 Prime Numbers
Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...

6 years ago

Solved


Extra safe primes
Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

6 years ago

Solved


Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

6 years ago

Solved


Basic electricity in a dry situation
&#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#...

6 years ago

Solved


Pentagonal Numbers
Your function will receive a lower and upper bound. It should return all pentagonal numbers within that inclusive range in ascen...

6 years ago

Load more