Resuelto


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

más de 2 años hace

Resuelto


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

más de 2 años hace

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 1

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

Respondida
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

casi 3 años hace | 0

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

casi 3 años hace | 0

Respondida
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

casi 3 años hace | 1

Respondida
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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

Resuelto


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

casi 3 años hace

Resuelto


Identify eban numbers

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


A times B
A times B

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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.

casi 3 años hace

Resuelto


Magnitude with vargin
Magnitude with an undefined amount of arguments

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


Am I a city or a state
Input will be an array of cities and states. Also, lists of cities and states will be passed. Replace every city name with "cit...

casi 3 años hace

Resuelto


掃き出し法を実装して、連立一次方程式を解いてみよう
※本問は、2023/7/24開催の、筑波大学でのセミナーのために作成した問題です。 掃き出し法を使った連立一次方程式の解法を穴埋めで実装してみましょう。 左辺と右辺を、それぞれ以下の行列Aおよび列ベクトルBで表したものが与えられたとします。この時、...

casi 3 años hace

Resuelto


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

casi 3 años hace

Cargar más