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

表示方法

解決済み


Define an arithmetic sequence
Given three numbers n, a, and d, define an arithmetic sequence of n terms with a being the initial term of the sequence and d be...

11分 前

回答済み
How to plot digital sequence in MATLAB
n=1:length(u); a=1.7; plot(n,a.^n.*u);%assuming u is a vector

1日 前 | 0

| 採用済み

回答済み
Replace NaN values in a matrix with values from another matrix
B(isnan(B))=A(isnan(B));

1日 前 | 0

| 採用済み

回答済み
Error using plot Vectors must be the same length.
t = linspace(0,1,n);%vector t needs to be same length as y_m

1日 前 | 0

| 採用済み

回答済み
How do I change the sign without altering the other and how can I do the factorial denominator? 1-1/3!+1/5!-1/7!+... and perform the sum?
disp('serie 4: 1-1/3!+1/5!-1/7!+...' ) n=input('Enter a number: '); Sum=0; for j=1:n Sum = Sum + (-1)^(j+1)/factorial(2*...

1日 前 | 0

| 採用済み

解決済み


Accumulate Cells
Given a combining function, a cell array, and an initial value, accumulate the result. For example, accumcell(@plus,{1,...

2日 前

解決済み


Generate the Figure-Figure sequence
After discussing Scott Kim’s FIGURE-FIGURE Figure (below) in Gödel, Escher, Bach, Douglas Hofstadter introduced an integer seque...

2日 前

回答済み
average for all looping
No loop needed. average_a=mean(randi(10,1,10))

2日 前 | 0

| 採用済み

解決済み


Find the slope of a line that passes through two vectors
Given two vectors p1 and p2, return the slope of a line that passes through p1 and p2. Examples: Input [p1,p2] = deal([0,1],[...

2日 前

回答済み
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(...

6日 前 | 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...

6日 前 | 0

| 採用済み

回答済み
sorting a matrix by another matrix
A(:,B)

6日 前 | 0

回答済み
Multiple plots in one figure (not subplot)
Look at stackedplot tbl = readtable("patients.xls","TextType","string"); stackedplot(tbl,["Height","Weight","Systolic","Diasto...

6日 前 | 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...

6日 前 | 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 ...

6日 前 | 0

回答済み
5th polynomial coding
Look at polyfit function.

6日 前 | 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...

6日 前 | 0

回答済み
Can I add a text annotation to a tiledlayout figure?
Look at text function

6日 前 | 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

6日 前 | 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 ...

6日 前 | 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];

6日 前 | 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 ...

6日 前 | 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...

6日 前

回答済み
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;

6日 前 | 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...

6日 前 | 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...

6日 前 | 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...

6日 前 | 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;

6日 前 | 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. ...

7日 前

解決済み


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

7日 前

もっと読み込む