Community Profile

photo

David Hill


Last seen: 1 jour ago
1 023 total contributions since 2017

Contact

David Hill's Badges

  • Pro
  • Knowledgeable Level 4
  • 3 Month Streak
  • Puzzler
  • Scholar
  • Creator
  • 5-Star Galaxy Level 1
  • Personal Best Downloads Level 2
  • First Review
  • First Submission
  • Revival Level 1
  • Leader
  • Computational Geometry II Master
  • Card Games Master
  • First Answer

View all

Contributions in
View by

Answered
How to convert each row in a cell array to a (1*n ) double matrix?
a=cell(1,164); for j=1:164 a{j}=[Key{j,1:end}]-48; end

9 jours ago | 3

| accepted

Answered
Error: Inner Matrix Dimension Must Agree
Vd = 0:0.1:0.7; P = ((0.6*Vd)-((Vd*1.5*10^-12).*(exp(38.64*Vd)-1)));%just need a dot (.*) plot(Vd,P)

10 jours ago | 1

| accepted

Answered
How to save figures to pdf or doc document?
https://www.mathworks.com/matlabcentral/fileexchange/71053-figure2pdf

10 jours ago | 0

Answered
How to assign inputs in a downloaded function
If you have built the data correctly, you access the function by: mld = ra_mld(salt,temp,Z);%dT defaults to 1 Function should ...

10 jours ago | 0

Answered
Determine the number of y-values less than the number 2.0
y = 2.5 + randn(100,1); a=mean(y); fprintf('the average of this list is %f\n', a); t=nnz(y<2); fprintf('The number of values...

10 jours ago | 0

Answered
Error: The logical indices contain a true value outside of the array bounds.
function Tgem2 = MaandGem2019(maand19) load data_weer.mat; Tgem2=mean(TG(jaar==2019&maand==maand19)); end

10 jours ago | 0

| accepted

Answered
How to write a function for a certain number of random numbers
function out=randint(N) out=randi(19999,1,N)-10000; end

10 jours ago | 1

Answered
Generate an array within three loops
count=1; for n=.1:.1:.5 for m=.1:.1:.5 for k=1:5 c(count)=94*2.4^n*.4^m;%1^k is always 1, so it does...

10 jours ago | 0

Answered
Error:" Output argument "y" (and maybe others) not assigned during call to"
y might never get assigned in your function. What do you want y to be if it doesn't meet any of your conditional statements? Jus...

11 jours ago | 1

Answered
Box-cox transformation isn't working!?
My understanding is that the boxcox() transformation changes the data into an approximately normal distribution. And the kstest(...

12 jours ago | 0

Answered
How to get row index which have my text
I assume you loaded your text into a cell. a={'Hi Helo';'How are you mekala';'what are you doing';'where are you going mekala'}...

12 jours ago | 0

Answered
how to extract a column from table ?
Not sure why you need a table, but convert to matrix, then: [~,idx]=max(sum(y));%idx will give you the column number of the max...

12 jours ago | 0

| accepted

Answered
how is it possible to solve below matlab codes problem?
I was somewhat confused with your question. Hopefully, this helps: for i=1:8784 %one year (hours) if Ppv_N(i,1) > PLoad(...

12 jours ago | 0

Answered
Problem with if and else and else
if 0.04<=t_1/Do&&t_1/Do<0.05 %need && t_1 = Pd*di/(2*k*Fy); Do = di + 2*t_1; ...

13 jours ago | 0

| accepted

Answered
How do i display all the values of this for loop?
for b = 1:ne c = 0 + (b)*a%remove ; end or c=zeros(1,ne); for b = 1:ne c(b) = 0 + (b)*a%remove ; end display(c);...

13 jours ago | 0

| accepted

Answered
convert binary to array matrix double
a=a-48;

13 jours ago | 0

Answered
I want to perform a function on the values that are on the even positions of my vector
M(2:2:end)=-1*M(2:2:end);

14 jours ago | 0

| accepted

Answered
I have a problem with plotting a summation equation, Help me!
k=6; f=zeros(1,2*k-7) for i=0:2*k-8 f(i+1)=sqrt((2*k-3)/((3+i)*(2*k-4-i))); end f=cumsum(f); f=f(1:2:end);%x=0,2,4 pl...

15 jours ago | 0

Answered
a*x^2+b*x+c using "while"
sin and cos are always between -1 and 1. The equation can never equal 0, unless you really are leaving out some important parent...

15 jours ago | 0

Answered
how to calculate the distance of a lat lon to the coastline?
Technically, you should use spherical trigonometry (great circle path) to determine the shortest distance. The algorithm is not ...

15 jours ago | 0

Answered
How to write vector form of very large number?
You could always use java BigInteger if you don't have symbolic toolbox. import java.math.* x=BigInteger(99); x=x.pow(99); x...

16 jours ago | 0

Answered
Convert .rpt to .m file?
https://www.mathworks.com/help/rptgen/ug/generating-matlab-code-from-report-templates.html

17 jours ago | 0

Answered
I want to count the number of times each event (a, b, c... up until j) occurs, a(t<1 hour) b(1 hour<t<2 hours) c(2 hours<t<3 hours)... up to j( t>9 hours) based on the following sample in order to find the probability of any individual event occuring
If your data is not in a cell array, convert to a cell array. For example: A={'02:47:09';'03:28:26';'13:57:18';'08:58:46';'10:3...

17 jours ago | 0

| accepted

Answered
How to separate each month of this file?
M=cell(1,12); cy=[0,31,59,90,120,151,181,212,243,273,304,334,365]*24; for k=2:13 M{k-1}=yourMatrix(cy(k-1)+1:c(k),:); en...

17 jours ago | 1

| accepted

Answered
Heatmap with log scale axis
Look at: semilogx()

17 jours ago | 0

Answered
How to get a script to only give me the number of elements less than 2?
nnz(y<2);

17 jours ago | 0

| accepted

Answered
Programming Mathematics logarithm problem
n=1+log(s/E)/log(r/t);

17 jours ago | 2

| accepted

Answered
Law of motion through numerical aproximation
F=@(t)6*sin(4*pi*t-pi/6)-0.5; t=0:.01:10; a=F(t)/.12; v=cumtrapz(a); d=cumtrapz(v); plot(t,d);

17 jours ago | 0

Answered
Help me fix the code for binary to text translator
You need to decide what the format of your input binary will look like. Will you force the input to be multiples of 8-bits? If y...

17 jours ago | 0

Submitted


Shake256
Uses Advance Encryption Standard algorithm from FIBS-197

18 jours ago | 2 downloads |

Load more