Community Profile

photo

David Hill


704 2017 이후 총 참여 횟수

담당자

David Hill's 배지

  • 3 Month Streak
  • Knowledgeable Level 3
  • Revival Level 1
  • Puzzler
  • Scholar
  • Creator
  • Personal Best Downloads Level 2
  • First Review
  • First Submission
  • Leader
  • Computational Geometry II Master
  • Card Games Master
  • First Answer
  • Introduction to MATLAB Master
  • Community Group Solver

모두 보기

참여 게시물
보기 기준

답변 있음
How to concatenate several matrix into one
newMatrix=horzcat(a,b,c,d,e,...);

1일 전 | 0

| 수락됨

해결됨


Mirror Image matrix across anti-diagonal
Given an input number x, create a mirror image matrix 'Y' across the anti-diagonal. For example, if x=3, Y = [1 2 3; ...

1일 전

제출됨


secp256k1 Elliptic Curve Shared-Key Generation GUI
Elliptic Curve Cryptography using secp256k1. Generates private-key times a given point (input) that is on the elliptic curve.

2일 전 | 다운로드 수: 2 |

Thumbnail

해결됨


Make a Star Pyramid
Create a star pyramid. First line will have 1 star, second will have two stars and so on... a basic program which is easily done...

2일 전

해결됨


Better bullseye matrix
<http://www.mathworks.com/matlabcentral/cody/problems/18-bullseye-matrix Problem 18> asks to create a bullseye matrix like this:...

2일 전

해결됨


Create a matrix X, where each column is a shifted copy of the vector v
Example : in->v = (1:5)'; 1 2 3 4 5 out-> [1 5 4 3 2;2 1 5 4 3;3 2 1 5 4;4 3 2 1 5;5 4 3 ...

2일 전

해결됨


Symmetric matrix
You must create a n-by-n *symmetric* matrix such that A(row,col) = row/col for col >= row. Example if n =3 : output is : ...

2일 전

해결됨


"mirror" matrix
Create n x 2n "mirror" matrix of this type: Examples For n = 2 m = [ 1 2 2 1 1 2 2 1 ] For n = 3 m = ...

2일 전

해결됨


Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

2일 전

해결됨


Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

2일 전

해결됨


Pascal's Matrix
Given an integer n &ge; 0, generate the ( _n_+1) &times; ( _n_+1) lower triangular <http://en.wikipedia.org/wiki/Pascal_matrix P...

2일 전

답변 있음
Plotting Infinite series in matlab
You can plot for various values of t between 0 and 1. t=.3%not sure what you want to plot against, I held t constant and plotte...

3일 전 | 0

| 수락됨

답변 있음
calling a function in a loop
Easier without for-loop. I agree with the comment above, without setting i=0 (initially), I believe it was causing your problem....

3일 전 | 0

답변 있음
Writing Code for Function
function yn=insideBounds(P,r) pgon=polyshape(r(:,1),r(:,2)); yn=isinterior(pgon,P); end

3일 전 | 0

답변 있음
Linear best fit through specified y-axis intercept
f=fit(x,y,'poly1'); disp(f);%will display the linear model including the y-intercept and slope of the fitted line

3일 전 | 0

답변 있음
Solve an equation through iteration in Matlab
function b = Solution(a,b)%a and b must bound the solution (a=5.2, b=5.3) f=@(x)x^4+x-750; while f(b)>.000001%whatever accurac...

3일 전 | 0

답변 있음
Can someone tell me what is wrong with this?
function x = Minimum(tau,xx) x(1)=xx; x(2)=x(1)-tau*(2*x(1)-2); k=2; while abs(x(k)-x(k-1))>0.01 x(k+1)=x(k)-tau*(2*x(k...

3일 전 | 0

답변 있음
Multiplication in cell arrays
Or a simple loop. for i=1:408 PRECTOTCORR{i}=PRECTOTCORR{i}*result(i); end

4일 전 | 0

| 수락됨

답변 있음
Reading string within a string
b={sprintf('problem.%s',a),sprintf('problem1.%s',a)};

4일 전 | 1

| 수락됨

답변 있음
Array indices must be positive integers or logical values.ERROR
throuput1=(c*(B*log(1+SNIR)));%I think you left out a * (c*...) otherwise you are trying to index into c Also, log(0) will be ...

4일 전 | 0

답변 있음
How to store Values in a Loop?
for t=0:10 L = 3*cos(t); M = diag([L 5*cos(t) 7*cos(t)]); K = [12e5*cos(t) 18e5*cos(t) 34e5*cos(t);18e5*cos(t) 15...

5일 전 | 0

| 수락됨

답변 있음
Plotting a temperature Depth Profile
A = readmatrix('name.xls');%I will assume temperature is in the first column and depth in the second column B = readmatrix('nam...

5일 전 | 0

답변 있음
I am trying to plot a function with iteration of a variable
Not sure what t is, but you do not need a for-loop. r = 0:.01:a; Vc = ((r.^2 - (a-d)^2)/(4*viscosity_c))*dpdz1; plot(Vc,r);

5일 전 | 0

답변 있음
How to store an x-y coordinate under one Variable
I really don't understand. How are your data points stored? Why is it easier with a single vector rather than two? You can alway...

5일 전 | 0

| 수락됨

답변 있음
How can I plot scatter graphs in a for loop?
Assume you have your data in a matrix, M. Assume you want a scatter plot of the column vs. mean of each column. scatter(1:size(...

5일 전 | 0

해결됨


Calculate the square root of a number
Input a Output b = srt(a)

5일 전

해결됨


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

5일 전

해결됨


BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

5일 전

답변 있음
Deleting columns corresponding to time value
data=data(:,data(1,:)>3);

5일 전 | 0

답변 있음
Caesar's cypher Encryption
function coded=caeser(v,a) coded=char(mod(v-32+a,95)+32); end

6일 전 | 0

Load more