Community Profile

photo

David Hill


Last seen: Today
4,294 total contributions since 2017

Contact

David Hill's Badges

  • Revival Level 2
  • 12 Month Streak
  • Guiding Light
  • Sequences And Series II Master
  • Cody5 Easy Master
  • Number Manipulation II Master
  • 5-Star Galaxy Level 3
  • Personal Best Downloads Level 3
  • First Review
  • Draw Letters
  • Cody Problems in Japanese Master
  • Cody Challenge Master
  • Computational Geometry I Master
  • Famous
  • Matrix Manipulation I Master

View all

Contributions in
View by

Solved


Convert Thermocouple output voltage (in mV) to Temperature (in C)
Convert Thermocouples of types (B,E,J,K,N,R,S,T) output junction voltage (in mV) to temperature (in C) using NIST coefficients r...

13 hours ago

Problem


Convert Thermocouple output voltage (in mV) to Temperature (in C)
Convert Thermocouples of types (B,E,J,K,N,R,S,T) output junction voltage (in mV) to temperature (in C) using NIST coefficients r...

13 hours ago | 0 | 1 solver

Solved


Compute a sum involving the totient over divisors of a number
Write a function to compute the following sum: where is the totient function. The sum is computed over the divisors of (inc...

2 days ago

Solved


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

2 days ago

Solved


Radioisotope Thermoelectric Generator (RTG)
Given an isotope's atomic mass (in amu), half-life (in years(a) or days(d)), and average kinetic energy absorbed (of emitted dec...

6 days ago

Problem


Radioisotope Thermoelectric Generator (RTG)
Given an isotope's atomic mass (in amu), half-life (in years(a) or days(d)), and average kinetic energy absorbed (of emitted dec...

6 days ago | 0 | 2 solvers

Solved


Nuclear Binding Energy
Compute the approximate nuclear binding energy in MeV using the least-squares fit of the semi-emirical mass formula. Round to th...

7 days ago

Answered
Extracting elements from one matrix and placing in another
I am confused when you said the expected size was 1440x721x10 but then your code has the corrected expected size. SLP_top_10=ye...

7 days ago | 0

Answered
Block diagonal change the first and last blocks with some other matrices
Why not use blkdiag() function? T=blkdiag(B,C,B);

7 days ago | 0

Problem


Nuclear Binding Energy
Compute the approximate nuclear binding energy in MeV using the least-squares fit of the semi-emirical mass formula. Round to th...

8 days ago | 1 | 5 solvers

Answered
how to get xyz value
rgb2xyz(RGB)

8 days ago | 0

Answered
Convert decimal to ASCII
uint8(['SO:VO ',num2str(voltage)]);

8 days ago | 0

| accepted

Answered
Problem with code-beginner
distances = zeros(length(xx),length(yy),NumberOfSites); xshift = isd*sind(AngleDistance*((1:NumberOfSites)-1));%assume isd and ...

8 days ago | 0

| accepted

Answered
How to write a program that selectively picks hexadecimal values from a text file based on bit size?
r=randi(4); a=readcell('hextest.txt'); x=input('hex length: '); hexValue=a{log2(x/16)+1,r};

8 days ago | 1

| accepted

Solved


Bleed non-zeros to the right
What a title! Yet, it says what I mean. You get a vector, some values and a lot of zeroes. Every zero is replaced by the firs...

9 days ago

Solved


Juego de posiciones
Crea una función que ordene vectores de tal manera que los primeros números sean negativos ordenados de menor a mayor. Y después...

9 days ago

Solved


Construcción de matrices a partir de vectores
Construye la matriz A=[1 2 2 1; 2 2 3 3;2 3 3 4; 1 3 4 4] utilizando los siguientes vectores. c=[1 2 3 4]; d=[2 3 4]; b...

9 days ago

Solved


Construyendo matrices parte 2
Construye la siguiente matriz a partir de otros tres vectores/matrices. [ 1 8 15 3 3 3 3 2 9 16 3 3...

9 days ago

Solved


Determina el número de cifras de un número
Crea una función que te devuelva el número de cifras de un número. Algunos ejemplos para ayudarte serían: El número 125 tie...

9 days ago

Answered
How do I perform prelocation when creating an array using a for loop?
speedvalue=160; Vcruise=zeros(1,speedvalue); HPreq=zeros(1,speedvalue); for i=1:1:speedvalue Vcruise(i)=i; Ptotal_fw...

9 days ago | 0

| accepted

Solved


Capitilize the first letter of every word in a string
For a given input string, capitalize every letter at the beginning of a word, and transform the rest of the letters to lower-cas...

13 days ago

Solved


Four quadrant inverse tangent function.
Create a function that returns an array P the same size as X and Y containing the element-by-element, four-quadrant inverse tang...

13 days ago

Solved


surface of parallelogram
Given 2 vectors of each 3 elements, determine the surface of the parallelogram which can be created from these 2 vectors.

13 days ago

Solved


Generalized Fibonacci
The Fibonacci sequence is defined as: Fib(1) = 0 Fib(2) = 1 Fib(N) = Fib(N-1) + Fib(N-2) The Fibonacci sequence ca...

13 days ago

Answered
How can I use arrayfun and integral as anonymous function?
I am doing a little guessing. I assume you want to integrate with respect to s (0,t) then look at t from 0:0.1:1. syms s t v=0...

13 days ago | 1

Answered
Solve Nonlinear complex equation
syms c1 c2 c3 c4 c5 c6 x1 x2; eqn=c1*exp(1i*x1)+c2*exp(1i*c3)-c4*exp(1i*c5)+x2*exp(1i*c6)==0; a=solve(eqn,x1); b=solve(eqn,x2...

14 days ago | 0

Answered
Converting Struct field to array
MyMatrix=cell2mat(struct2cell(MyStruct));

14 days ago | 0

Answered
Could someone please explain what is wrong in my function?
Why not just use built-in function sign()? a=sign(A); %then index into a for specific element

14 days ago | 2

Answered
How to sum specific elements of a matrix
m=randi(100,6);%your assumed matrix m=[m;mean(m([1 4],:));mean(m([2 5],:));mean(m([3 6],:))]; b=[mean(m(:,[1 4]),2),mean(m(:,[...

14 days ago | 0

Answered
How do I correct the error "Matrix dimensions must agree"?
Your problem is with the norm() function. You cannot subtract at 4x1 vector from a 5x1. Maybe you ment: for i=1:length(k), e(i)...

15 days ago | 0

| accepted

Load more