Solved


Aztec Diamond domino tilings
Consider a Cartesian grid, with verteces at integer x and y values, where every four vertices around a vacant space define a uni...

4 years ago

Solved


Simple Math
What is 2+2? Answer with character string

4 years ago

Answered
How to randomly select coordinates from given set of data?
x= [1 2; 3 4; 5 6; 7 8; 9 0]; y=x(randi(size(x,1),1),:)

4 years ago | 0

Solved


2+2
add 2+2

4 years ago

Answered
Two functions, how to read parameters created in one function in another function?
Works fine p=CreateModel; s=CreateRandModel(p);

4 years ago | 0

Answered
I need to decrypt a text but I do not know how.
x= 'Jmkyvih$mx$syx$}ixC'; char(x-4)

4 years ago | 0

| accepted

Solved


Convert grams of Carbon to Moles
Stoichiometry...fun!

4 years ago

Solved


Sum of 2 numbers
Finds the sum of two numbers

4 years ago

Solved


three digits
Input three digits no larger than 4,say 1,2 and 3, write the possible largest number composed(concatenation and power) only by t...

4 years ago

Solved


Find the circumference of the circle
Geometry

4 years ago

Solved


Find the area of the circle
geometry

4 years ago

Solved


Find the circumference of the circle
geometry

4 years ago

Solved


Swap Characters of a Single Word
Description: In the given input word, convert the lower case to upper case and vice versa. A to a, a to A ... Example: 'Matl...

4 years ago

Answered
Reassigning array values in for loop
You are overflowing floating point numbers. import java.math.* a1 = BigInteger('0'); a2 = BigInteger('63308'); a3 = BigInteger...

4 years ago | 0

| accepted

Answered
Multiply a number with a line of returns
v=.01:.01:.1; newV=10*prod(1+v);

4 years ago | 0

Answered
How can I find maximum value of this function???
This is a brute force method. P1 = 25; P2 = 37.5; P3 = 20; W1 = [5, 10]; W2 = [5, 10]; W3 = [5, 10]; L1 = [40, 60]; L2 =...

4 years ago | 0

| accepted

Answered
Writing an iteration to solve for the summation presented
B=rand(10); x=rand(1,10); i=5; R=100;T=100;P=1; s=0; for j=1:size(B,2) s=s+sum(x(j)*B(i,j)-B,'all'); end phi=exp(2*s...

4 years ago | 0

Answered
Call a element of Varying Column vector
Hard to understand what you are trying to do. Eval statement makes no sense as well as the douple for-loop. Eval would be overri...

4 years ago | 0

| accepted

Answered
find indexes of two values that between them there is specific number
A=[1 5 2.5 1 2.1 38 1.4 2.7 27 2.3 1.9 2.6 2.7 9 10 1.2]; B=2; f=A-B; F=find(f<0); b=[]; for k=1:length(F) try ...

4 years ago | 0

Answered
Iterative solver trying to find what value of a variable satisfies an equation
M1 = 8; gamma = 1.4; v_M1 = (((sqrt((gamma +1)/(gamma - 1)))*(atan(sqrt(((gamma - 1)/(gamma + 1))*((M1.^2)-1))))) - atan(sqrt(...

4 years ago | 0

Solved


prime consecutive sums
Create a number sequence of 1 to n, such that the sums of every two consecutive numbers are all primes. E.g. if n = 5, you may ...

4 years ago

Answered
how to write a iterative code?
Not sure what you are doing, but can find the n-vector all at once without iterating. n=ones(size(lc)); n(lc<1.64)=.5; n(lc>1...

4 years ago | 0

| accepted

Answered
Local extrema of a function
p=[.1,-1.2,0,10]; r=roots(polyder(p))

4 years ago | 0

Solved


Determine whether the given number is palindrome or not.
A palindromic number (also known as a numeral palindrome or a numeric palindrome) is a number (such as 16461) that remains the s...

4 years ago

Solved


Random Problem14 - Multiply a vector by a scalar of 2
Multiply a vector by a scalar of 2

4 years ago

Answered
How to select rows in a matrix based on the values in another matrix?
C=B(ismember(B(:,1),A(:,1)),:);

4 years ago | 0

| accepted

Solved


String Manipulator
Write a script that takes a string as an input and returns a cell array containing – I. the count of vowels. II. Find the ind...

4 years ago

Solved


Compute a determinant
Write a function to compute the determinant of an x matrix with diagonal entries equal to an integer and other entries equal ...

4 years ago

Answered
How to use special characters in MATLAB (unicode playing cards)?
I believe the only unicode support for card symbols is: char(9824:9831) You can build your own cards via images. Here is an ex...

4 years ago | 0

Answered
Convert a Column Vector to Matrix
y=reshape(x,2,[])';

4 years ago | 0

Load more