Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'.
Examples
x = [ 1...
約1年 前
解決済み
string comparision
compare two strings if both are same return 1 else return 0
約1年 前
解決済み
MATCH THE STRINGS (2 CHAR) very easy
Match the given string based on first two characters on each string.
For example
A='harsa';
b='harish'; result '1'
...
約1年 前
解決済み
String revert
Revert all words in a sting x
for example, if x = 'this is a sentence' then y should be 'sentence a is this'
More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...
約1年 前
解決済み
Namespace
Create a set of n variable names 'a_1',...,'a_n'
The result should be a column oriented cell array of strings.
Example inp...
約1年 前
解決済み
Return strings encapsulated by braces
Return all substrings that are contained within braces ({}).
For example:
str = 'x = rho*x{-1} + (1-rho)*y{+1}';
when...
約1年 前
解決済み
Reverse a string
Return a string with the characters in reverse order from a given input string
Ex:
my_str = "Ciao"
function should output "...
約1年 前
解決済み
Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S.
So if
C = {'twe...
約1年 前
解決済み
Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...