Community Profile

photo

Jan Valdman


Last seen: Today
62 total contributions since 2010

Associate professor of applied mathematics
https://sites.google.com/site/janvaldman/

Professional Interests: FEM, nonlinear computational mechanics, a posteriori error estimates, MATLAB vectorizations

Contact

Jan Valdman's Badges

  • Personal Best Downloads Level 3
  • First Review
  • 5-Star Galaxy Level 4
  • GitHub Submissions Level 1
  • First Submission
  • Thankful Level 1
  • Solver

View details...

Contributions in
View by

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

10 days ago

Solved


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

10 days ago

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

10 days ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

10 days ago

Solved


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

10 days ago

Solved


Return area of square
Side of square=input=a Area=output=b

11 days ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

11 days ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

11 days ago

Solved


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

21 days ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

2 months ago

Solved


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

2 months ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

2 months ago

Solved


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

2 months ago

Submitted


Enlarge figure axis by a given factor
Given a 2D figure with (eg. tight) axis, this simple code automatically recalculates axis and enlarges them by a prescribed fact...

2 months ago | 3 downloads |

Thumbnail

Solved


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

8 months ago

Answered
Minimization of a function with unknown gradient but known sparsity pattern of its hessian
Dear colleague, based on our discussions from yesterday, I implemented a finite difference scheme for a gradient approximation ...

12 months ago | 0

Question


Minimization of a function with unknown gradient but known sparsity pattern of its hessian
Dear colleagues, is there a fmincon option to minimize a function without the knowledge of its gradient but providing a sparsit...

12 months ago | 2 answers | 1

2

answers

Submitted


Simulation of von Kármán viscoelastic plates
A quasistatic evolution of viscoelastic von Kármán plates.

1 year ago | 4 downloads |

Thumbnail

Solved


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

1 year ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

1 year ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

1 year ago

Solved


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

1 year ago

Solved


Complex number
For complex number c=a+bi, write code that will add a and b together.

1 year ago

Submitted


Equilibria of economical models with cost of change
Evaluations of Cournot-Nash and Stackelber-Cournot-Nash equilibria for models with several firms using Gauss method

1 year ago | 2 downloads |

Thumbnail

Submitted


Implementation of C1 FEM
Detailed implementation of Bogner-Fox-Schmit elements.

1 year ago | 3 downloads |

Thumbnail

Submitted


Hyper elasticity with a non-penetration condition
A 2D FEM solver based on an energy minimisation formulated in C^1 deformation including a new non-penetration term.

1 year ago | 2 downloads |

Thumbnail

Submitted


Element-based Solvers
2D Poisson's solver using only local FEM matrices without the global matrix assembly.

1 year ago | 2 downloads |

Thumbnail

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

2 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

2 years ago

Question


Is there any gradient descent method available?
We are working on the optimization of nonconvex energies in mechanics of solid (see the attached picture) resulting from the fin...

2 years ago | 1 answer | 0

1

answer

Load more