Solved

NO _________ ALLOWED....

So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

10 månader ago

Solved

ABBREVIATION

Abbreviate the given string. Consider Only Capital Letters. EXAMPLE If input is 'Abbreviation of The Given String' then ou...

10 månader ago

Solved

Convert Two Character String into a Binary Vector

Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

10 månader ago

Solved

Is the paranthesis sequence balanced ?

Quantum mechanics and computer science are interested in <http://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation bra-kets>. Today...

10 månader ago

Solved

Count letters occurence in text, specific to words with a given length.

Build a function with two input arguments: a string and a word length (number of letters), that outputs a vector of counts of th...

10 månader ago

Solved

Simple Caesar Cypher - shift encrypt a message given an index number

A Caesar cypher is a simple shift encryption method. Your goal is to create a function that allows a user to input a string and ...

10 månader ago

Solved

most frequent character

Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...

10 månader ago

Solved

Alternately upper-lower case

Modify the string to alternate between upper and lower case. For example, s='achyuta' output='AcHyUtA'

10 månader ago

Solved

Split a given string from the first instance of a given character

A simple operation to split a given string into two substrings at the point where the desired character is first found. e.g. ...

10 månader ago

Solved

How many digits are there?

Input(s) - any string Output(n) - number of digits within string s

10 månader ago

Solved

Join Strings with Multiple Different Delimiters

The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

10 månader ago

Solved

Simple Decoder Ring

The stereotypical _decoder ring_ is remembered as a cereal box prize from the 1950s. Kids learned about cryptography by startin...

10 månader 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 ...

10 månader ago

Solved

Morse Code Generator! Try it!

.... . .-.. .-.. --- . ...- . .-. -.-- --- -. . -.-.-- .-.. . - ... -.. --- ... --- -- . -- --...

10 månader ago

Solved

Split bread like the Pharaohs - Egyptian fractions and greedy algorithm

How would you split 5 loaves of bread among 8 people in all fairness? Get a hint from the Pharaohs. 5/8 = 4/8 + 1/8 , i.e. each ...

10 månader ago

Answered

Recreate Matlab figure in Excel?

You can always use ActiveX (this will be phased out in a future version of MATLAB) to build plots directly in your Excel file. H...

Recreate Matlab figure in Excel?

You can always use ActiveX (this will be phased out in a future version of MATLAB) to build plots directly in your Excel file. H...

10 månader ago | 0

Answered

Read only numerical value or seperate data using deliminater

Assuming that you ultimately want to extract the date/time and resistance values, and assign them to separate variables, the fol...

Read only numerical value or seperate data using deliminater

Assuming that you ultimately want to extract the date/time and resistance values, and assign them to separate variables, the fol...

10 månader ago | 0

| accepted

Answered

Extracting second number after comma within parenthesis

Assuming that the number will always be in scientific notation, then the following should work. TOC = regexp(str,'(?<=\(.*?,)\d...

Extracting second number after comma within parenthesis

Assuming that the number will always be in scientific notation, then the following should work. TOC = regexp(str,'(?<=\(.*?,)\d...

10 månader ago | 1

| accepted

Answered

Using strcmp with multiple inputs

You can use strcmpi, which is a non-case-sensitive version of strcmp. B = find(strcmpi(rw(:,3),'boskalis westminster dredging l...

Using strcmp with multiple inputs

You can use strcmpi, which is a non-case-sensitive version of strcmp. B = find(strcmpi(rw(:,3),'boskalis westminster dredging l...

10 månader ago | 0

Answered

Modify Strings in cell array according to pattern

Let me know how this works for you. B = {'C3H7O';'C2H7O2';'C2H7O2+';'C4H5O';'C4H5O';'C3H3O2';'';'C4H7O';'C3H5O2';'C3H7O2';'C2H5...

Modify Strings in cell array according to pattern

Let me know how this works for you. B = {'C3H7O';'C2H7O2';'C2H7O2+';'C4H5O';'C4H5O';'C3H3O2';'';'C4H7O';'C3H5O2';'C3H7O2';'C2H5...

10 månader ago | 1

| accepted

Answered

Problems with min and max functions

Since you are defining your function as having a input x, you do not need to redfine it within your function. You can also achie...

Problems with min and max functions

Since you are defining your function as having a input x, you do not need to redfine it within your function. You can also achie...

10 månader ago | 1

| accepted

Answered

Modify Strings in cell array according to pattern

I am sure that there is a much more elegant method using just regular expressions, but the following should give you what you ar...

Modify Strings in cell array according to pattern

I am sure that there is a much more elegant method using just regular expressions, but the following should give you what you ar...

10 månader ago | 0

Answered

How do I construct this function?

The following should accomplish what you are asking. function TF = issquare(A) % Verifies that A is a numerical matrix with ...

How do I construct this function?

The following should accomplish what you are asking. function TF = issquare(A) % Verifies that A is a numerical matrix with ...

10 månader ago | 0

| accepted

Answered

Output argument ‹variable› (and maybe others) not assigned during call to ‹function›

Currently, you have only decleared pdf as an output argument at the start of your function, but have neglected to assign a value...

Output argument ‹variable› (and maybe others) not assigned during call to ‹function›

Currently, you have only decleared pdf as an output argument at the start of your function, but have neglected to assign a value...

11 månader ago | 0

Answered

matlab legend dotted lines

Without knowing whether your x and y inputs used in the plot function are vectors or arrrays it is hard to derive a working solu...

matlab legend dotted lines

Without knowing whether your x and y inputs used in the plot function are vectors or arrrays it is hard to derive a working solu...

11 månader ago | 0

Answered

How can I subplot 3 graphs with errors barr and different characteristics?

Replace the lines containing the subplot functions with the following: ... subplot(3,1,1) ... subplot(3,1,2) ... subplot(3...

How can I subplot 3 graphs with errors barr and different characteristics?

Replace the lines containing the subplot functions with the following: ... subplot(3,1,1) ... subplot(3,1,2) ... subplot(3...

11 månader ago | 0

| accepted

Answered

"surf" overwrites axis properties

Try reordering your properties so that they are assigned after you use the surf function. fig = figure; ax = axes('Parent',fig...

"surf" overwrites axis properties

Try reordering your properties so that they are assigned after you use the surf function. fig = figure; ax = axes('Parent',fig...

11 månader ago | 0

Answered

App Designer KeyPress callback for a Tree

Chris, As you mentioned, App Designer Trees do not yet have a KeyPress callback. While the UIFigure does have this callback, th...

App Designer KeyPress callback for a Tree

Chris, As you mentioned, App Designer Trees do not yet have a KeyPress callback. While the UIFigure does have this callback, th...

11 månader ago | 0

| accepted

Solved

Additive persistence

Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...

11 månader ago

Solved

Convert Roman to Arabic Numerals

Based upon what I see on tv and at the movies, the use of Roman numerals indicates something is important or sophisticated (e.g....

11 månader ago