Solved


Given a number find two variables
If the input is *x*, find *a* and *b* from the following equation: *x = a*2^b*. Hint: *b* is an integer while *x* and *a* ar...

5 years ago

Solved


compare strings
Given 2 strings and 3 actions (Insert,delete,replace) on characters. Find the difference between two strings. Example: str...

5 years ago

Solved


arrangement of symbols
There are n different symbols in which m symbols are identical (m<n). How many different arrangement can we make with these symb...

5 years ago

Solved


Cubic Integer Constrained Solution
Find an integral non-trivial solution (x,y,z ~=0) (x=0 or y=0 or z=0 are trivial) for the cubic equation 987,654,321x + 123,45...

5 years ago

Solved


Function composition - harder
Write a function that accepts an arbitrary number of function handles f_1, f_2, ..., f_n and returns the composition h. That is,...

5 years ago

Solved


Function composition
Write a function that accepts two function handles f and g and returns the composition h. That is, h = (f o g)(x) = f(g(x)) ...

5 years ago

Solved


Easy Sequences 31: N-N's Sequence
We define the N-N's Sequence, as the series of all positive integers in ascending order and with repetition, wherein any number ...

5 years ago

Answered
How do I implement this for loop calculation in direct matrix or vector calculation?
R=sum(diff(A).^2,'all');

5 years ago | 0

| accepted

Answered
Plot magnitude and phase plot
[A,B]=meshgrid(-20:20); g=(1+1i*B)./(1+1i*A); M=20*log10(abs(g)); P=angle(g); plot(M,P);

5 years ago | 1

| accepted

Answered
how can i solve this system on matlab?
syms v L x1 x2 x3 y1 y2 y3 eq1=v+L==1; eq2=x1*L+y1*v==.25; eq3=x2*L+y2*v==.45; eq4=x3*L+y3*v==.30; eq5=y1==2.7406*x1; eq6=...

5 years ago | 1

Solved


Esoteric Trigonometry
From Wikipedia: "All of the trigonometric functions of an angle θ can be constructed geometrically in terms of a unit circle cen...

5 years ago

Solved


Rule of mixtures (composites) - upper bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

5 years ago

Solved


Stress-Strain Properties - 8
Up to this point, you've calculated some material properties based on tensile stress-strain data. For this problem, you are task...

5 years ago

Solved


Stress-Strain Properties - 7
The toughness of a material is technically defined as the plastic strain energy absorbed by the material (the olive region in th...

5 years ago

Solved


Stress-Strain Properties - 5
Similar to the previous problem, materials may be characterized by their stiffness-to-weight ratio, which is the elastic modulus...

5 years ago

Solved


Stress-Strain Properties - 2
The resilience of a material is its ability to resist permanent (or plastic) deformation. The resilience coincides with the elas...

5 years ago

Solved


Stress-Strain Properties - 4
A common measure of the ability of a material to carry load per unit mass is termed strength-to-weight ratio and is calculated b...

5 years ago

Solved


Stress-Strain Properties - 6
The total energy absorbed by a material up to failure in a tensile test is termed the absorbed strain energy. With respect to th...

5 years ago

Solved


Stress-Strain Properties - 3
A brittle material will not exhibit a yield point. In other words, the yield point and failure point coincide. In such cases, th...

5 years ago

Solved


Stress-Strain Properties - 1
This is the first in a series of problems regarding mechanics of materials, in particular, material properties drawn from stress...

5 years ago

Solved


Rule of mixtures (composites) - lower and upper bounds
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

5 years ago

Solved


Rule of mixtures (composites) - lower bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

5 years ago

Solved


Easy Sequences 27: Product of Radicals of Integers
The radical of a positive integer is defined as the product of the distinct prime numbers dividing . For example, the distinct ...

5 years ago

Solved


Easy Sequences 26: Prime-Integer Line Segments
At the first quadrant in the -plane, you are asked to construct a line segment with the following specifications: Select a prim...

5 years ago

Solved


Plotting Practice
Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...

5 years ago

Solved


Easy Sequences 25: Product of Series
The function 'P(n)' is defined as the series product: where 'T(n)' is the triangular sum: ...

5 years ago

Answered
if elseif else statement not working
If-Else Method: function largestNumber = SortLargestNumber(x,c,m) if x>=c && x>=m largestNumber = x; elseif ...

5 years ago | 1

Answered
How can I find same arrays in cell of arrays?
c=1; for m=1:41 for n=m+1:42 if isequal(A{m}(:,1:2),A{n}(:,1:2)) idx(c,:)=[m,n];%index pairs that have matchi...

5 years ago | 0

Answered
How to retrieve the list of numbers from which the average of a normal simulation is derived?
n = 5000; %Number of Simulations, sample size x1 = 75:125; %Mean simulation range y1 = 1:40; %Standard Deviation range N=...

5 years ago | 0

| accepted

Answered
Creating m by 2 matrix
[a,b]=max(A,[],2); M=[a,b];

5 years ago | 0

Load more