photo

Max


Aktiv seit 2015

Followers: 0   Following: 0

Statistik

  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


counting and merging in array
How would I write for example a function that merges say x=(0:2:6 ,[1 ,2]) into x=[0,1,2,2,4,6] Furthermore say I wanted to coun...

fast 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to plot using semilogy
how would I plot using semilogy() for t=1.57123822236922 1.60940312809172 47.3847818221929 1.55948917911167 1.2890181602...

fast 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


finding most common letter in a cell array
If I have a cell array x={'overcomplete';'phellandrene';'phenanthrene';'pneumatocele';'pneumonocele' 'preintercede';'pr...

etwa 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


finding most common letter in a string
say I have a string y='asdqwdqwdasasdasdaasasdwdqwd' How do I find the letter that occurs the most in y which is clearly 'a' so...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


count number of elements in a cell
say I have x={'zyryan';'zythem';'zythia';'zythum';'zyzomys'} how would I count the number of elements in x. There are 5 words...

etwa 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


exiting code if condition is met
I have written a bunch of code but I would like to ignore it if and a condition is met. so for if length(dict)=1 newgu...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


last letter in a string
I have a string that is going to keep updating Say x='ear' how do I take the last later in the string so say lastletter='r' ...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


taking second mode from strings
I want to write something that takes the most common letter from a cell array of it does not appear in another string newgue...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


delete words from list based on logical statement
say I have a cell array x={'abatable';'abate';'abatement';'abater';'dog';'cat';'make';'abator';'see'} and word='abatis' let...

etwa 9 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


finding most common letter in a bunch of words
say I have a bunch of words x={'abac';'abaca';'abacate';'abacay';'abacinate';'abacination';'abaciscus'} What would I write...

etwa 9 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


Getting rid of the for loop
D I'm having trouble getting rid of the for loop in my function. I have written out this code that works fine but I would li...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


removing strings on several calls of function
I'm trying to remove strings once they have been called. And then I want to ignore an if statement on the next call of a functio...

etwa 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


if statement for string
Say I have something like word='example' and letter='e' I'm trying write a if state for example if word contains l...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


unique characters in a cell
If I have a cell x= 'sat' 'satire' 'sa' 'do' How would I list all the unique letters that appear from the list...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


editing a cell in a loop
If I have a 1 column cell x= 'dog' 'at' 'cat' 'four' 'creative' How do I write code t...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


adding letters to string
Say I start of with an empty string x='' And I input something random say 'd' I would like x='d' then If I input a second th...

etwa 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


removing elements of cell array of strings
how would I write a loop that removes words depending on inputs. say I have 'aam' 'aani' 'aardvark' 'aardwolf' 'aaron'...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


selecting random part of string
say I have alphabet='abcdefghijklmnopqrstuvwxyz' how do i select a random letter from the alphabet so Guess= random let...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Adding elements to an array
say I have an array x=[0,0,2,3,4] and a code for n=1 if (10^n)*p<q n=n+1; elseif (10^...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Converting For loops into recursive functions
What are the general ideas of converting for loops and nested for loops I have written into recursive functions that dont need l...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to exist out of 2 for loops.
for i=1:(q+1) ...... for ... if ... break end end end Im ha...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Finding if a number repeats in a single row
How do I create a script that checks if a number comes up more than once in a single row. For example, lets say we have a single...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Code to recognize repeating numbers.
lets say we have a fraction were the denominator is always bigger than the numerator. For example 2/3 or 7/12. How would you cr...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Finding averages in an array
1 4 2001 30 29 8 1 2 4 2002 4 5 2 1 2 4 2002 9 6 4 7 2 4 2002 19 14 7 3 2 4 2002 25 21 5 4 2 4 2002 7 18 4 5 2...

etwa 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Finding how many times a team lost from an array
Im given 1 5 2004 16 8 13 3 1 5 2004 21 12 8 6 1 5 2005 22 25 3 8 1 5 2005 23 22 2 1 1 5 2005 2...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How many times a date appears in an array
I am given 7 10 2001 16 2 15 5 7 10 2001 20 18 0 5 7 10 2001 24 10 5 14 7 10 2001 26 15 2 1 7 10 2001 27 13 2 9 ...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Summing different set of arrays.
7 10 2001 24 10 5 14 7 10 2001 14 15 2 1 7 10 2001 14 13 2 9 =x 31 3 2002 14 9 2 6 1 4 2002 14 19 10 3 1 ...

etwa 9 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


Summing specific values in arrays
If i have something for example say 2,3 4,5 2,5 1,5 2,1 1,1 how would i sum up all the values on the seco...

etwa 9 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


Comparing numbers in columns then summing the percentages
I have been given a tab 2 4 2001 4 5 2 1 2 4 2001 9 6 4 7 2 4 2001 19 14 7 3 2 4 2001 25 21 5 4 2 4 2001 7 18 ...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort