Community Profile

photo

David Hill


Last seen: Today 2017 이후 활성

Electrical Engineering with minors in Computer Science and Mathematics. Working as Undergraduate Research Assistant in the field of Computational Photonics

Programming Languages:
Python, C++, C, Java, MATLAB, HTML, Arduino
Spoken Languages:
English, Spanish

Statistics

All
  • MATLAB Mini Hack Participant
  • Treasure Hunt Participant
  • 24 Month Streak
  • Revival Level 2
  • Magic Numbers Master
  • Word Puzzles Master
  • Personal Best Downloads Level 4
  • 5-Star Galaxy Level 4
  • Promoter
  • Sequences And Series II Master
  • Cody5 Easy Master
  • Number Manipulation II Master

배지보기

Content Feed

보기 기준

답변 있음
extracting data from set of data
t=readtable('owid-covid-data_2020-21.csv'); u=unique(t.Location); count=0; for k=1:length(u) m=movsum(diff(t.TotalCases(...

약 12시간 전 | 0

답변 있음
Compare a vector values with martix having multiple rows
yourMatrix=[randi(2,20,2),5*rand(20,3)]; yourVector=5*rand(20,3); newMatrix=yourMatrix(yourMatrix(:,3)<=yourVector(1)|yourMatr...

약 13시간 전 | 0

답변 있음
sorting a matrix by another matrix
A(:,B)

약 16시간 전 | 0

답변 있음
Multiple plots in one figure (not subplot)
Look at stackedplot tbl = readtable("patients.xls","TextType","string"); stackedplot(tbl,["Height","Weight","Systolic","Diasto...

약 18시간 전 | 0

답변 있음
Can I add a text annotation to a tiledlayout figure?
subPlotNames = 'ABCDEFGH'; fig = figure(1); hold on; set(gca,'FontSize',12,'FontName','Calibri'); for i = 1:8 x=randi(r...

약 18시간 전 | 0

답변 있음
Can someone run this function and give the results as I have 2017 version and I believe there are some functions that work in latest versions
Yes, code runs. All three buttons work properly. nodeXY = [ 0 0; 10 5; 10 0; 20 8;20 0; 30 9; 30 0; 40 8; 40 0; 50 ...

약 20시간 전 | 0

답변 있음
5th polynomial coding
Look at polyfit function.

약 20시간 전 | 0

답변 있음
How to add values into rows of cell array?
Assuming the values to be added are in a matrix (3x6) for k=1:6 yourCell{k}=randi(256,3,18)-1;%populate yourCell end valu...

약 20시간 전 | 0

답변 있음
Can I add a text annotation to a tiledlayout figure?
Look at text function

약 20시간 전 | 0

답변 있음
Save regression output (fitlm) into table
Save in a cell array. I might not be understanding you completely. for k=1:10 Model=%your code c{k}=Model; end

약 21시간 전 | 0

답변 있음
Code doesn't run through whole array
With a couple changes the code runs. v.V_kmh=real(v.V_kmh);%needs to be real (I inserted this line here) for i=1:tracksize ...

약 21시간 전 | 0

| 수락됨

답변 있음
I want to concatenate two matrix of size 1x122 and 1x128, but I am getting error of "Dimensions of arrays being concatenated are not consistent" , how can I solve the issue ?
DeciYear=readmatrix('DeciYear.xlsx'); DeciYear1=readmatrix('DeciYear1.xlsx'); dy=[DeciYear,DeciYear1];

약 22시간 전 | 0

| 수락됨

답변 있음
I don't understand the condition from FOR row 16 to row 26
The whole nested for-loop is just used to display results_numeric. If you don't care about displaying, you can delete the whole ...

약 22시간 전 | 0

해결됨


Factor Digits
Check if a given number in an array of numbers is - Equidigital Number - A number that has the same number of digits as the num...

1일 전

답변 있음
How to convert to nan
FF= [1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15]; FF(FF>5&FF<14)=nan;

1일 전 | 0

| 수락됨

답변 있음
How to find data
t=readtable('owid-covid-data_2020-21.csv'); u=unique(t.Location); s=zeros(1,length(u)); for k=1:length(u) s(k)=sum(t...

1일 전 | 0

답변 있음
separating numbers in cells
Do you mean a cell array like this? a={'1-8','7-1','8-4';'4-6','8-5','7-3'}; m=zeros(size(a));n=zeros(size(a)); for k=1:numel...

1일 전 | 0

답변 있음
How to code to perform the following tasks?
n=2;npop=5;Location=1:137; Locations=reshape(Location(randperm(length(Location),n*npop)),npop,n); s=[9476,4739,3157,2650]; Si...

1일 전 | 0

답변 있음
How to define variable (for later use) that contains another defined variables
np=5;ns=3; n=@(np,ns)np/ns; f=n(np,ns)+1; np=8;ns=5; f=n(np,ns)^2+3;

1일 전 | 1

해결됨


Split a given string from the first instance of a given character
A simple operation to split a given string into two substrings at the point where the desired character is first found. e.g. ...

1일 전

해결됨


newRMS
find root mean square of a signal x in less time than the test code and accurate to six places.

1일 전

해결됨


Find the particular dividend
It is known that once you write the sequence 10101...101 long enough, the number will be finally divisible by any odd number if ...

1일 전

답변 있음
How to delete a Matrix in a 3D Matrix?
idx=[]; for k=1:size(T5,3) if any(isnan(T5(:,:,k)),'all') idx=[idx,k]; end end T5(:,:,idx)=[];

2일 전 | 0

| 수락됨

해결됨


Is the paranthesis sequence balanced ?
Quantum mechanics and computer science are interested in <http://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation bra-kets>. Today...

2일 전

해결됨


Generate a melodic contour string matrix
<http://en.wikipedia.org/wiki/Parsons_code Parsons code> is a surprisingly effective way to identify music by its melodic motion...

2일 전

해결됨


Eliminate Polysyllabics: Long live short words!
Given a string s1, return s2 in which all the words with more than one syllable have been removed. To make things simple, we ...

2일 전

해결됨


Simple Decoder Ring
The stereotypical _decoder ring_ is remembered as a cereal box prize from the 1950s. Kids learned about cryptography by startin...

2일 전

해결됨


Generate a Parasitic Number
This problem is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/156-parasitic-numbers Problem 156>. ...

7일 전

해결됨


Polygonal numbers
The task of <http://www.mathworks.co.uk/matlabcentral/cody/problems/5 Problem 5> is to calculate triangular numbers. By playing ...

8일 전

해결됨


Find the 9's Complement
Find the 9's complement of the given number. An example of how this works is <http://electrical4u.com/9s-complement-and-10s-c...

8일 전

더로드