Community Profile # Gatech AE

Last seen: 3 days ago Active since 2019

For my (working) functions, I like to ask "Can it go faster?"

#### Statistics

All
• • • • • • • • • • • • #### Content Feed

View by

Solved

Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

2 months ago

Solved

Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

2 months ago

Solved

Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

2 months ago

Solved

Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

2 months ago

Solved

Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

2 months ago

Solved

Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

2 months ago

Solved

Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

2 months ago

Solved

MATLAB Basic: rounding IV

2 months ago

Solved

MATLAB Basic: rounding III

2 months ago

Solved

MATLAB Basic: rounding II

2 months ago

Solved

MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

2 months ago

Solved

Relative pose in 2D: problem 1
We consider a world reference frame denoted by {0} which has its x-axis pointing east and its y-axis pointing north. There is a...

2 months ago

Solved

Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

2 months ago

Solved

Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

2 months ago

Solved

Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

2 months ago

Solved

Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

2 months ago

Solved

Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

2 months ago

Solved

Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

2 months ago

Solved

Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

3 months ago

Solved

How long do each of the stages of the rocket take to burn?
A space rocket has 3 stages: - stage 1, s1; - stage 2, s2; - stage 3, s3. If s1 burns 3 x as long as s2 which burns ...

3 months ago

Solved

SatCom #4: Satellite Orbit Altitude
*Satellite and Space Engineering - Problem #4* _This is part of a series of problems looking at topics in satellite and space...

3 months ago

Solved

Electrical Diode Current Calculation
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

3 months ago

Solved

An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

3 months ago

Solved

Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

3 months ago

Solved

Sum My Indices
Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices. Example input...

3 months ago

Solved

Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

3 months ago

Solved

Neither minima nor maxima
Input v is a vector. Return all the elements of v which are not a local minimum or maximum. Example: v = [1 2 3 4 5] Ou...

3 months ago

Solved

Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

6 months ago

Solved

Total energy

7 months ago

Solved

Potential energy calculation

7 months ago
{"ft_lang_label":"__label__en","ft_lang_prob":0.7847491,"math_prob":0.98178494,"size":5152,"snap":"2021-31-2021-39","text_gpt3_token_len":1529,"char_repetition_ratio":0.17171717,"word_repetition_ratio":0.07066381,"special_character_ratio":0.28959626,"punctuation_ratio":0.15506607,"nsfw_num_words":1,"has_unicode_error":false,"math_prob_llama3":0.9955881,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],"im_url_duplicate_count":[null,2,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-24T14:58:40Z\",\"WARC-Record-ID\":\"<urn:uuid:83bf6673-2014-481a-8c9a-b73882388914>\",\"Content-Length\":\"117865\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e201f62d-71ae-4297-812e-10db2ba64ade>\",\"WARC-Concurrent-To\":\"<urn:uuid:3364751b-e78a-4998-8993-78472f99890d>\",\"WARC-IP-Address\":\"23.197.108.134\",\"WARC-Target-URI\":\"https://ch.mathworks.com/matlabcentral/profile/authors/7492230?detail=cody\",\"WARC-Payload-Digest\":\"sha1:ZHTX5CVOPWCWWXB4YKE74MKB6FLK3DVZ\",\"WARC-Block-Digest\":\"sha1:CEJE64QKCLEDTBHFSFYZY7VIPHG3HNT3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046150266.65_warc_CC-MAIN-20210724125655-20210724155655-00680.warc.gz\"}"}