odd and even functions
x=-pi:.001:pi; f=@(x).5*(sin(x)+abs(sin(x))); if isequal(f(x),f(-x)) even_odd=2;%even elseif isequal(-f(x),f(-x)) e...

11 days ago | 1

How to get a one function result?
function [out1,out2]=mainfun(input) out1=nan;out2=nan; try [out1]=fun1(input); end try [out2]=fun2(input); end

11 days ago | 1

Solved

String Logic 17
Examples: 'DIG' --> 'GDI' 'IMPORTANT' --> 'TANTIMPOR' 'DEAL' --> 'EALD' 'LIMB' --> 'IMBL' 'MOSTLY' --> 'YMOSTL'

11 days ago

What is the meaning of 'internal sorting rules' in 'sort' in Symbolic Math Toolbox?
A = [factorial(sym(1001)), exp(sym(1)) + factorial(sym(1000))] [~,s] = sort(vpa(A));%vpa the symbolic before sorting. A=A(s);%...

11 days ago | 0

Problems when sort 'sym' variables and 'vpa' double-precision number.
Why are you using symbolics? Double should be sufficient (these are not large numbers). D1 = (1 - exp(-beta*pdist2(X,u).^2)); ...

11 days ago | 0

Solved

String Logic 15
Examples: 'CAT' --> 'XZG' 'DOG' --> 'WLT' 'ROSY' --> 'ILHB' 'MOSTLY' --> 'NLHGOB'

11 days ago

Solved

String Logic 16
Examples: 'DIG' --> 'DIG' 'KIMBALL' --> 'ALLKIMB' 'DEAL' --> 'EALD' 'LIMB' --> 'IMBL' 'MADE' --> 'ADEM'

12 days ago

Solved

String Logic 19
Examples: 'DIG' --> 'I' 'IMPORTANT' --> 'MOTN' 'DEAL' --> 'EL' 'LIMB' --> 'IB' 'MOSTLY' --> 'OTY'

12 days ago

Solved

String Logic 18
Examples: 'DIG' --> 'DG' 'IMPORTANT' --> 'IPRAT' 'DEAL' --> 'DA' 'LIMB' --> 'LM' 'MOSTLY' --> 'MSL'

12 days ago

Solved

String Logic 14
Examples: 'DIG' --> 'HRN' 'KIMBALL' --> 'VRZDBXX' 'DEAL' --> 'HJBX' 'LIMB' --> 'XRZD' 'MADE' --> 'ZBHJ' 'CHEF' --> 'FPJL'

12 days ago

Solved

String Logic 13
Examples: 'CAT' --> 'TCA' 'DOG' --> 'OGD' 'ROSY' --> 'YSRO' 'MOSTLY' --> 'YTSOML'

12 days ago

Solved

String Logic 12
Examples: 'CAT' --> 'ACT' 'DOG' --> 'DGO' 'ROSY' --> 'ORSY' 'MOSTLY' --> 'LMOSTY'

12 days ago

Solved

String Logic 9
Examples: 'CAT' --> 'C' 'DOG' --> 'G' 'ROSLY' --> 'R' 'PROBLEM' --> 'M' 'TRUST' --> 'T' 'BASIC' --> 'C' 'GIANT' --> 'I'...

12 days ago

Solved

String Logic 8
Example: 'CAT' --> 65 'DOG' --> 68 'ROSY' --> 79 'MATLAB' --> 65 'TRUST' --> 82 'MOSTLY' --> 76

12 days ago

Solved

String Logic 7
Examples: 'CAT' --> 84 'DOG' --> 79 'ROSY' --> 89 'MATLAB' --> 84 'TRUST' --> 85 'MOSTLY' --> 89

12 days ago

Solved

String Logic 6
Examples: 'CAT' --> 216 'DOG' --> 218 'ROSY' --> 333 'MATLAB' --> 433 'TRUST' --> 418 'MOSTLY' --> 488

12 days ago

Solved

String Logic 5
Example: 'CAT' --> 'TAC' 'DOG' --> 'GOD' 'MATLAB' --> 'BALTAM' 'ROSY' --> 'YSOR' 'TRUST' --> 'TSURT' 'MOSTLY' --> 'YLTS...

12 days ago

Solved

String Logic 4
Example: 'CAT' --> 'IGZ' 'DOG' --> 'JUM' 'MATLAB' --> 'SGZRGH' 'ROSY' --> 'XUYE' 'TRUST' --> 'ZXAYZ' 'MOSTLY' --> 'SUYZ...

12 days ago

Solved

String Logic 3
Example: 'CAT' --> 'RPI' 'DOG' --> 'SDV' 'MATLAB' --> 'BPIAPQ' 'ROSY' --> 'GDHN' 'TRUST' --> 'IGJHI' 'MOSTLY' --> 'BDHI...

12 days ago

Solved

String Logic 2
Example: ROSY --> HEIO TRUST --> JHKIJ MOSTLY --> CEIJBO

12 days ago

Problems when 'mod' quite big number (like factorial).
x=sym('23'); mod(factorial(x),10000) x=sym('24'); mod(factorial(x),10000)

12 days ago | 0

| accepted

Solved

Find the String Logic 1
Examples: 'CAT' --> 'IGZ' 'DOG' --> 'JUM'

13 days ago

Solved

Latest Question On Cody
Get the problem number of the latest submitted Problem on Cody. Copying the test suite code might not help.

13 days ago

Solved

perfect square
Perfect square is amazing, so we have problems like 45183, 34482, 44683, and 44957. But how can we find a large number is a pe...

13 days ago

How to judge the duplicate value of the previous loop and the current loop in the loop
Not sure what you are asking. Of course there are going to be repeated values in the year rows. You need to explain better with ...

13 days ago | 0

Merging real and imaginary data in to one variable

13 days ago | 1

| accepted

Solved

Remove Lower Case Letters
Example MEMOry --> MEMO IMPlEMeNtATiON --> IMPEMNATON

13 days ago

Solved

Remove Upper Case Letters
Example Matlab --> atlab proBlem --> prolem Enter --> nter

13 days ago