답변 있음
Generate a 1-by-10 vector p whose elements are random numbers.
p=rand(1,10)

2년 이하 전 | 0

답변 있음
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]

2년 이하 전 | 0

답변 있음
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));

2년 이하 전 | 0

답변 있음
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 ...

2년 이하 전 | 0

| 수락됨

답변 있음
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...

2년 이하 전 | 0

답변 있음
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...

2년 이하 전 | 0

답변 있음
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...

2년 이하 전 | 0

| 수락됨

질문


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

2년 이하 전 | 답변 수: 1 | 0

1

답변

해결됨


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

2년 이하 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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.

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


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

2년 이상 전

해결됨


Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

2년 이상 전

해결됨


Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

2년 이상 전

Load more