Solved


Given a base n, find the y values less or equal than 100(without 1), such that they will never produce a periodic number if we divide any whole number between some of them
A periodic number depends on the base b where we are working. So, for example the number 2/3 in decimal base is periodic(0.666...

2 years ago

Solved


A row vector, pick 1st number, skip 1,pick 3rd number, skip 2,pick,skip,etc then place all picked numbers in order in new vector
Having a row vector of number, pick the first number, place in new output vector as the first value, then skip one number, pick...

2 years ago

Solved


Find out the smallest number 9 times greater
What is the smallest natural number where the result of moving the digit on the far right to the front of the number is a number...

2 years ago

Solved


Find the smallest number leading to a maximal product of two numbers that concatenate to another number
Cody Problem 58971 involves the maximal product of numbers that concatenate to a number . For example, if , then the products ar...

2 years ago

Solved


Compute the maximal product of any two numbers whose concatenation is n
Write a function that takes an input and computes the maximal product of numbers that concatenate to . For example, if , then t...

2 years ago

Answered
Trying to shade the area between upper and lower confidence bands on Kaplan Meier Curve
A=readmatrix('data table.csv','Range','A13:D408'); timeDays=A(:,1)';probability=A(:,2)';Lower=A(:,3)';Upper=A(:,4)'; plot(time...

2 years ago | 0

| accepted

Answered
seach string in arraycell and find idx
C = {'A',31; 'B',5; 'C',3}; idx = find(ismember(C(:,1),{'A'}))

2 years ago | 1

| accepted

Answered
transform exponential number to decimal
M1 = importdata("M1.mat"); A = compose('%d (%3.2f%%)', [M1(:,1), M1(:,2)])

2 years ago | 0

| accepted

Answered
Catenary at different height between 2 fixed points ?
maximum a is minimum y. And the minimum cable length can be found using: a=2;H=10; minL=2*a*sinh(H/2/a) Use cable length > mi...

2 years ago | 0

Answered
Can you help me create a function according to mathematical formula?
A=randi(128,1,20) for k=1:3 B=sum(A)/numel(A); idx=A<B; g{k}=A(idx); A(idx)=[]; end g{4}=A; g

2 years ago | 0

Answered
how to speed ...i need very fast code
q=6062; matrix=matri(1:q,:); c=size(matrix,2); COR=zeros(c); a=matrix; for yy=1:c b=matrix(:,yy); COR(yy,:)=round(s...

2 years ago | 0

Answered
Plot multiple variables from table with different x axes
figure;hold on; for i=1:10 stairs(eval(sprintf('Map1.Distance_%1d',i)),eval(sprintf('Map1.Ca_%1d',i))); end

2 years ago | 1

Answered
New line after fprintf in a for/ while loop
a=randi(100,1,100); for k=1:100 formatSpec = 'a is %2g\n'; if a(k)>90 fprintf(formatSpec,a(k)); end end

2 years ago | 0

| accepted

Answered
how to make a loop with an if condition for a system of equations
z2 =[-0.17162382699849727786214078518756;-0.091002558325694825093302376780363;... -0.031615696698776074425432150707406;-0.0...

2 years ago | 0

| accepted

Solved


A Mathematical Problem
Find the kth digit of the inverse of a number 'n'. Assumption: n>1

2 years ago

Solved


Identify eban numbers

2 years ago

Solved


Alternate Arrangement
Determine the ways of arranging 'm' men and 'w' women alternatively in a row of 's' seats. Assumptions : s<m and s<w

2 years ago

Solved


Getting Maximum Chocolate
John loves Chocolate but he didn't have money. The owner of "Sweet Chocolate" launches a scheme for free chocolate. He divided a...

2 years ago

Solved


Hemisphere Volume on Top of a Cylinder
This MATLAB function has to calculate the volume of a hemisphere placed on top of a cylinder, given valid inputs. It takes the r...

2 years ago

Solved


Build the Well
Calculate the total time taken for building 'n' wells given : Worker A takes a hr to build the well alone Worker B takes b hr...

2 years ago

Solved


Is it the answer to life the universe and everything?
The answer to life the universe and everything is 42, but this is naturally in base 13. Unfortunately, MATLAB is in base 10, so ...

2 years ago

Solved


A times B
A times B

2 years ago

Solved


Determine if input is greater than 100
Evaluate if given number is greater than 100. If greater, return true; else, return false.

2 years ago

Solved


Fibonacci Sequence
Write a MATLAB function called fibonacci_sequence(n) that takes an integer n as input and returns the first n terms of the Fibon...

2 years ago

Solved


Add Odd and Subtract Even Numbers in an Array
For an input array, add all the odd values and subtract the even values. The final value is the output. E.g. input = [1 2 3 4 ...

2 years ago

Solved


Calculate the price
Milk is $15/pound, sugarr is $5/pound, and coffee is $5/cup. Please help the cashier calculate the price for each order.

2 years ago

Solved


Magnitude with vargin
Magnitude with an undefined amount of arguments

2 years ago

Solved


How many offices does MathWorks have in the UK
Please write a function that returns the number of offices MathWorks has in the UK.

2 years ago

Solved


Find collatz series next number
For given x, if x is even, output is (x/2) if x is odd, output is (3x+1)

2 years ago

Solved


Convert row and column subscripts to linear indices
Convert 2D row and column subscripts to linear indices WITHOUT sub2ind Example: row = [1 2 3 1]; col = [2 2 2 3]; sz = [3 3]...

2 years ago

Load more