Community Profile # 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
• • • • • • • • • • • • 배지보기

#### 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(...

약 11시간 전 | 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...

약 12시간 전 | 0

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

약 15시간 전 | 0

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

약 17시간 전 | 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...

약 17시간 전 | 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 ...

약 19시간 전 | 0

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

약 19시간 전 | 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...

약 19시간 전 | 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

약 20시간 전 | 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 ...

약 20시간 전 | 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 ?

약 21시간 전 | 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 ...

약 21시간 전 | 0

답변 있음
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

답변 있음
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)=[];

1일 전 | 0

| 수락됨

답변 있음
How to find x values from y value in "fit" function?
yval=-62; eqn=@(x)feval(f,x)-yval X1=fzero(eqn,4.8); X2=fzero(eqn,5.3);

10일 전 | 0

| 수락됨

답변 있음
removing repeats from lists
d=intersect(a,b); d=d(~ismember(d,c));

11일 전 | 0

답변 있음
odd and even functions
x=-pi:.001:pi; f=@(x).5*(sin(x)+abs(sin(x))); if isequal(f(x),f(-x)) even_odd=2;%even elseif isequal(-f(x),f(-x)) e...

14일 전 | 1

답변 있음
How to get a one function result?
function [out1,out2]=mainfun(input) out1=nan;out2=nan; try [out1]=fun1(input); end try [out2]=fun2(input); end

14일 전 | 1

답변 있음
What is the meaning of 'internal sorting rules' in 'sort' in Symbolic Math Toolbox?
A = [factorial(sym(1001)), exp(sym(1)) + factorial(sym(1000))] [~,s] = sort(vpa(A));%vpa the symbolic before sorting. A=A(s);%...

14일 전 | 0

답변 있음
Problems when sort 'sym' variables and 'vpa' double-precision number.
Why are you using symbolics? Double should be sufficient (these are not large numbers). D1 = (1 - exp(-beta*pdist2(X,u).^2)); ...

14일 전 | 0

답변 있음
Problems when 'mod' quite big number (like factorial).
x=sym('23'); mod(factorial(x),10000) x=sym('24'); mod(factorial(x),10000)

15일 전 | 0

| 수락됨

답변 있음
How to judge the duplicate value of the previous loop and the current loop in the loop
Not sure what you are asking. Of course there are going to be repeated values in the year rows. You need to explain better with ...

16일 전 | 0

답변 있음
Merging real and imaginary data in to one variable