Answered
How to split a table column into two seperate columns
y = {'AIVA_1\abc';'AIVA_12\def';'AIVA_123\xyz'} z=split(y,'\') column1 = z(:,1) column2 = z(:,2)

4 years ago | 1

Answered
Multiplication of two tables, one value of table 1 multipled by all the values of table 2
%output in matrix form y = (table1.var1)*(table2.var2)'

4 years ago | 1

Solved


Rotate and display numbered tile
Imagine a square tile with four numbers on it, one on each edge. We will call these edges north, east, south, and west. If th...

4 years ago

Answered
how to plot forward difference error against h values ?
So when you save what you have written in a file, that would be saved as a script file. You have to manually update different va...

4 years ago | 0

Solved


Cat, Meowcat and Concatenation
Input is a cell array containing several strings. Find the largest continuous sub-string common to all strings. All strings are ...

4 years ago

Solved


Find the longest match inside two strings
Given two strings, find the longest string which is contained within both strings. e.g. the longest string that is contained ...

4 years ago

Solved


longest common semi-substring
Finding longest common substring is a common problem in string processing. This problem is a variant of that. Two strings are g...

4 years ago

Solved


Find matching string from a list of strings
Write a function that returns a string that is a unique match (if it exists) of the string |inStr| from a list of strings |strLi...

4 years ago

Solved


Find matching parenthesis
One of the most indispensable things about a great text editor for programming is the ability to quickly jump between matching p...

4 years ago

Solved


Use of regexp
Given a string, containing several sentences, such as: 'I played piano. John played football. Anita went home. Are you safe?...

4 years ago

Solved


Palindrome Problem 1
Continued Problem 50033: A palindrome is one-thirteenth of the sum of and , where and are also palindrome. Give an example o...

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

Solved


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

4 years ago

Solved


Eliminate Polysyllabics: Long live short words!
Given a string s1, return s2 in which all the words with more than one syllable have been removed. To make things simple, we ...

4 years ago

Solved


Matrix Pattern 10

4 years ago

Solved


The almost-birthday problem.
This is a harder version of the birthday problem. Now, you will have to determine the probability that two or more people in a r...

4 years ago

Solved


Remove duplicated vertices
First input V_in is a vertices list (X Y Z coordinates) which may contain duplicata (identical rows). Second input T_in is th...

4 years ago

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

Answered
Creating a logic vector out of 2D matrix
Indexing in MATLAB starts with 1 and not 0. M = [1 2; 2 0; 3 1; 4 0; 5 3; 6 0; 7 2; 8 4; ...

4 years ago | 1

Solved


Find edges from a vertex
First input is T, a triplet list of indices. Second input is i, a single index (positive integer). The goal of this function is ...

4 years ago

Solved


Matrix Pattern 5

4 years ago

Solved


Matrix Pattern 9

4 years ago

Solved


Matrix Pattern 2

4 years ago

Solved


Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

4 years ago

Answered
How to get the order if one column has same number and other column has different values
Array_games = [0 0 0 0 0 0 0 1 1 1]'; Column_2 = [datetime(2022,2,25,19,06,57);datetime(2022,2,25,19,06,57);datetime(2022,2,25,...

4 years ago | 1

Solved


Use a timetable to analyze a train timetable (Part 1)
Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Th...

4 years ago

Solved


Use a timetable to analyze a train timetable (Part 2)
Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Yo...

4 years ago

Solved


Use a timetable to analyze a train timetable (Part 4)
You are analyzing a train timetable (you have some time to kill since you just missed your train!) What is the average daily tri...

4 years ago

Solved


Use a timetable to analyze a train timetable (Part 5)
You are analyzing a train timetable (you have some time to kill since you just missed your train!) How many trains depart each d...

4 years ago

Load more