Community Profile

photo

Jesús Zambrano


MathWorks

315 total contributions since 2018

Jesús Zambrano's Badges

  • 3 Month Streak
  • Puzzler
  • Revival Level 1
  • Modeling And Simulation Challenge Master
  • Community Group Solver
  • Speed Demon
  • Leader
  • Commenter
  • Promoter
  • Creator
  • Introduction to MATLAB Master
  • First Answer
  • Solver

View details...

Contributions in
View by

Solved


Change matrix to vector2
From x = 4 3 5 1 5 1 To y = 4 3 5 1 ...

4달 ago

Solved


Cumulative product of a vector
Cumulative product of a vector example x=[1 2 5 10], then answer must be [ 1 2 10 100] *If you like this prob...

4달 ago

Solved


Extract a specific part of matrix!
In the given matrix, extract element that have odd rows and column number. For example A=[1 4 2 3 5] B=extractodd(A);...

4달 ago

Solved


Rotate Matrix Depending on the input
Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

4달 ago

Solved


Create tangent function out of sine function only
Please don't use cosine and tangent functions

4달 ago

Solved


Create tangent function out of cosine only
Please don't use tangent and sine functions

4달 ago

Solved


Create sine function out of cosine
Please don't use sin(x) directly

4달 ago

Solved


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

4달 ago

Answered
fsolve problem
You can try with the function solve. For example, to force getting real solutions: syms x eqn = x^5 == 3125; solve(eqn, x) %...

4달 ago | 0

Solved


Project Euler: Problem 5, Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

4달 ago

Solved


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

4달 ago

Solved


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

4달 ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

4달 ago

Solved


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

4달 ago

Solved


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

4달 ago

Solved


Remove the Zero
Given an array n, remove all zeros

4달 ago

Solved


Ratio between sum of primer numbers and non-prime numbers
Write a function that calculates the ratio between the sum of the prime numbers lower or equal than x, and the sum of the non-pr...

4달 ago

Solved


Ratio between sum of primes and sum of factors
Write a function that calculates the ratio between the sum of primes numbers lower or equal to x, and the sum of the factors of ...

4달 ago

Solved


07 - Common functions and indexing 6
Create a variable _m_ as a magic square with the size 6 x 6 Magic squares are defined as square matrices, where the sum of a...

5달 ago

Solved


Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...

5달 ago

Solved


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

5달 ago

Solved


Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

5달 ago

Solved


Easy problem
This is an easy problem. Just click on submit.

5달 ago

Solved


Add 3 numbers
In this problem, you have to add three numbers a, b and c. Give output d = add(a,b,c)

5달 ago

Solved


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

5달 ago

Solved


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

5달 ago

Solved


matrix of natural number
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 resides seially as shown in the examples below. ...

5달 ago

Solved


y equals x divided by 2
function y = x/2

5달 ago

Solved


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

5달 ago

Solved


Sphenic number sequence
<http://oeis.org/A007304 Sphenic numbers> are positive integers that are products of three distinct prime numbers: 30, 42, 66, 7...

5달 ago

Load more