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

quasi 6 anni fa | 1

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

quasi 6 anni fa | 0

Risposto
Generate a 1-by-10 vector p whose elements are random numbers.
p=rand(1,10)

quasi 6 anni fa | 0

Risposto
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]

quasi 6 anni fa | 0

Risposto
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));

quasi 6 anni fa | 0

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

quasi 6 anni fa | 0

| accettato

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

quasi 6 anni fa | 0

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

quasi 6 anni fa | 0

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

quasi 6 anni fa | 1

| accettato

Domanda

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

quasi 6 anni fa | 1 risposta | 0

### 1

risposta

Risolto

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

quasi 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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.

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa

Risolto

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

oltre 6 anni fa