Community Profile

photo

David Hill


Last seen: Today
2.980 total contributions since 2017

Contact

David Hill's Badges

  • 12 Month Streak
  • Guiding Light
  • Knowledgeable Level 4
  • Famous
  • Matrix Manipulation I Master
  • Indexing II Master
  • 5-Star Galaxy Level 3
  • Personal Best Downloads Level 3
  • First Review
  • Sequences And Series III Master
  • Puzzler
  • Scholar
  • First Submission
  • Revival Level 1
  • Creator

View all

Contributions in
View by

Answered
Deleting rows from array
a(a(:,3)>5,:)=[];

alrededor de 9 horas ago | 0

Answered
What does [3, Inf] represents?
That is an array/vector with two elements 3 and Inf named sizeA. Workspace would show size as 1x2.

1 día ago | 0

Answered
Integrating several text files
Just read them in and concatenate. b=[]; for n=1:numberoffiles fileName=sprintf('yourfile%d',n);%assuming file names are ...

1 día ago | 0

Answered
How to plot two columns of a repeated value column from the same matrix?
sz=25; scatter(A(:,4),A(:,3),sz,A(:,1),'filled');

1 día ago | 0

| accepted

Answered
How to do an iterative problem involving two unknowns and an integral
%find integral, then V y=.005:.00001:.05; for k=1:length(y) I(k)=integral(@(x)(10*x-30)./(1.5-15*x),0,y(k)); V(k)=(I...

1 día ago | 0

Answered
How to average over different length vectors without excessive for loops?
I would use a cell array. for k=1:100 x{k}=randi(100,1,randi(1000));%simulate your outputs end Mean=zeros(1,100); for k...

2 días ago | 0

Solved


Fangs of a vampire number
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such tha...

2 días ago

Solved


Variance computation (★★★)
Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

2 días ago

Solved


Make a list string
Given a cell string, produce a string separating the items with spaces and commas and with an 'and' preceding the final item, an...

2 días ago

Solved


Wrap-around effect
In vector x of length n we define (n+1) position as going back to the first position (so called wrap-around effect). Can you ret...

2 días ago

Solved


Explode string
Break a sentence into cell of words

2 días ago

Solved


Sample from random roulette
Given a list of values and their probabilities sample 10,000 values. Example: x = [1 2 3 4 5]; prob = [0.2 0.1 0.4 0....

2 días ago

Solved


Create a matrix with difference of each row of input matrix
With a given input matrix A, create a output matrix B in such a way that each row in B is a difference of rows of input matrix A...

3 días ago

Solved


The prisoner
"We want information, information, information." "Who are you?" Input can be a string or a number (array).

3 días ago

Solved


Concatenate strings
concatenate a variable number of input strings to produce one outputstring

3 días ago

Solved


Remove the middle element from a vector
Remove the middle element of a vector? *Example:* [1,2,3] should return 2 [1,2,3,4] should return 2 [] should return...

3 días ago

Solved


Find 100 from a Matrix and Replace With 0 with less computation time
pls use this matrix x = [208 40 167 180 112 70 192 215 90 19 231 100 9 100 97 100 ...

3 días ago

Solved


Logarithm with base other than 'e'
The standard log() function in Matlab returns the natural logarithm (base equal to Euler's constant). Compute the logarithm for ...

3 días ago

Solved


Parallel vectors
Return true or false depending on whether 2 vectors are parallel or not. Vectors can be 2 or 3 dimensional. The origin is not c...

3 días ago

Solved


Was ist denn los?
Nur für deutschsprechende Leute! Wie geht's? ...also gut, bis bald!

3 días ago

Solved


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

3 días ago

Solved


MiniMax
Find the smallest value in array, which is the maximum of its row and column. Example: in array shown below are two numbers w...

3 días ago

Solved


A KING AND 100 PRISONERS

3 días ago

Solved


Find the index of the first occurrence of a value in a matrix
Given a matrix of scalars, find the first occurrence of -1 in each column. Output NaN for a column which does not contain the va...

3 días ago

Solved


Let's create histogram data by yourself.
We'd like to create histogram data, which first column shows the data, and second column shows the frequency. input = [1, 2, ...

3 días ago

Solved


Question 1
Implement a function named q1 with one input argument named n. This function should return the multiplication of all odd numbers...

3 días ago

Solved


determine amount cookies left
started with 3 cookies and you never ate any how many are left

3 días ago

Solved


Find supported functions
Given a function name, return true if that function is supported by the toolboxes that are installed with MATLAB on this machine...

3 días ago

Solved


Combination of Vectors
Return a combination of vectors x1, x2 based on y1, y2 per: x(j) = 0 if y1(j) < y2(j) x(j) = x1(j) if y1(j)...

3 días ago

Load more