Community Profile # square seeker

Active since 2012

Professional Interests: engineering

#### Statistics

• • • • #### Content Feed

View by

Solved

Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

8 years ago

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

8 years ago

Solved

you just measured its surface area, that is the input.

8 years ago

Solved

Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

8 years ago

Solved

Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

8 years ago

Solved

peta to nano (x-ray)
for certain x-ray radiation, given frequency in petahertz, give wavelength in nanometer, must be accurate +/- 25%

8 years ago

Solved

Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

8 years ago

Solved

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

8 years ago

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

8 years ago

Solved

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

8 years ago

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

8 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

9 years ago

Solved

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

9 years ago

Solved

Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

9 years ago

Solved

Given a and b, return the sum a+b in c.

9 years ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

9 years ago

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

9 years ago
{"ft_lang_label":"__label__en","ft_lang_prob":0.69059837,"math_prob":0.9885483,"size":2982,"snap":"2021-31-2021-39","text_gpt3_token_len":953,"char_repetition_ratio":0.15983881,"word_repetition_ratio":0.048648648,"special_character_ratio":0.30684105,"punctuation_ratio":0.16712707,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9908272,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,1,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-28T22:54:14Z\",\"WARC-Record-ID\":\"<urn:uuid:b28c72ed-3ae1-4ba6-baa9-ab981ee3501c>\",\"Content-Length\":\"85341\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:469403a3-3531-46b8-b9d7-75028de39cfc>\",\"WARC-Concurrent-To\":\"<urn:uuid:4dd26839-a966-4fbf-8b52-c1f24573bc0a>\",\"WARC-IP-Address\":\"23.220.132.54\",\"WARC-Target-URI\":\"https://au.mathworks.com/matlabcentral/profile/authors/3319781?s_tid=cody_local_to_profile\",\"WARC-Payload-Digest\":\"sha1:XMINFRDVWRQX7KHKBALHY77SRQVRF6BQ\",\"WARC-Block-Digest\":\"sha1:ZRJS3PFDVADVDLVYCNCOQLMIF55F57GA\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046153803.69_warc_CC-MAIN-20210728220634-20210729010634-00182.warc.gz\"}"}