Community Profile

photo

David Hill


612 total contributions since 2017

Contact

David Hill's Badges

  • Knowledgeable Level 3
  • Revival Level 1
  • First Answer
  • Scholar
  • Creator
  • Leader
  • First Review
  • First Submission
  • Computational Geometry II Master
  • Card Games Master
  • Introduction to MATLAB Master
  • Community Group Solver
  • Sequences And Series I Master
  • Indexing I Master
  • Number Manipulation I Master

View all

Contributions in
View by

Solved


Back to basics 18 - justification
Covering some basic topics I haven't seen elsewhere on Cody. Given a string with extra spaces in front and/or in back, return...

7 days ago

Solved


Back to basics 19 - character types
Covering some basic topics I haven't seen elsewhere on Cody. Return the number of punctuation characters in the input variabl...

7 days ago

Solved


Back to basics 20 - singleton dimensions
Covering some basic topics I haven't seen elsewhere on Cody. Remove the singleton dimensions from the input variable (e.g. if...

7 days ago

Solved


Back to basics 25 - Valid variable names
Covering some basic topics I haven't seen elsewhere on Cody. Given a string, return true if it is a valid MATLAB variable nam...

7 days ago

Solved


Back to basics 26 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of strings of all MATLAB keywords.

7 days ago

Solved


Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

7 days ago

Solved


Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

7 days ago

Solved


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

7 days ago

Answered
While loop condition to execute until certain number of decimal places of accuracy is achieved
Increment by half the difference or whatever you want. d=1; while d>.001 a=a+(a-b)/2; d=abs(a-b); end

7 days ago | 1

Solved


Max of a Vector
Write a function to return the max of a vector

8 days ago

Solved


2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

8 days ago

Solved


Determine the square root
Determine the square root of the value the user has entered, n.

8 days ago

Solved


04 - Scalar Equations 3
Define the variables a, b, and c: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b....

8 days ago

Solved


04 - Scalar Equations 2
Define the variables a and b: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b.png>...

8 days ago

Solved


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

8 days ago

Solved


pressure to dB?
given x ratio of pressure, find corresponding y dB

8 days ago

Solved


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

8 days ago

Solved


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

8 days ago

Solved


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

8 days ago

Solved


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

8 days ago

Solved


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

8 days ago

Solved


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

8 days ago

Solved


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

8 days ago

Solved


length of a vector
Find twice the length of a given vector.

8 days ago

Solved


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

8 days ago

Solved


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

8 days ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

8 days ago

Solved


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

8 days ago

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

8 days ago

Solved


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

8 days ago

Load more