A soumis


Julia Sets (Live Editor Example)
This example file shows the capabilities of the Live Editor while exploring Julia Sets.

presque 10 ans il y a | 1 téléchargement |

4.0 / 5
Thumbnail

A résolu


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

presque 10 ans il y a

A résolu


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

presque 10 ans il y a

A résolu


Multielement indexing of a row array
The row array birthRateChina stores the China birth rate (per 1000 people) for years 2000 to 2012. Write a statement that create...

presque 10 ans il y a

A résolu


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

presque 10 ans il y a

A résolu


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

presque 10 ans il y a

A résolu


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

presque 10 ans il y a

A résolu


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

presque 10 ans il y a

A résolu


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

presque 10 ans il y a

A résolu


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

presque 10 ans il y a

A résolu


Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...

presque 10 ans il y a

Réponse apportée
Unreasonable ODE45 results
This looks to me as if ODE45 is initially taking big steps which only coarsely capture the behavior, but it quickly recovers and...

presque 10 ans il y a | 0

Réponse apportée
The mathematics behind modelling
You have a system of 7 coupled ODEs. You will need to code the equations into a function, define the initial conditions and inte...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Disable help search highlights after having jumped to a result.
With a page open that has search terms highlighted, press the Esc key to disable the highlighting.

environ 10 ans il y a | 4

| A accepté

Réponse apportée
how to draw a directed graph ??
With MATLAB R2015b you can <http://www.mathworks.com/help/matlab/graph-and-network-algorithms.html create and plot graphs> witho...

plus de 10 ans il y a | 0

Réponse apportée
How to use "graphmaxflow" function for undirected graphs in matlab?
In MATLAB R2015b, you can easily create and analyze graphs. See the following documentation for more info: http://www.mathwor...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Draw Directed or undirected graph
This functionality is available in MATLAB R2015b. See the following documentation for more info: http://www.mathworks.com/hel...

plus de 10 ans il y a | 0

| A accepté

A résolu


inner product of two vectors
inner product of two vectors

plus de 10 ans il y a

A résolu


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

plus de 10 ans il y a

A résolu


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

plus de 10 ans il y a

A résolu


Sum of a vetor
y = vectorsum(x)

plus de 10 ans il y a

A résolu


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

plus de 10 ans il y a

A résolu


Find the area!
Find the area of a medium Dominos pizza

plus de 10 ans il y a

A résolu


Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

plus de 10 ans il y a

A résolu


Vertically stack two vectors
Stack two vectors on top of each-other so that... if A = [1 5 3] and B = [8 6 4] then C = [1 5 3 ; 8 6 4]

plus de 10 ans il y a

A résolu


Array
Create a 3 by 3 array of 1s

plus de 10 ans il y a

A résolu


Create an array (n,n) where only diagonal elements are '1' and others are '0'
Create an array (n,n) where only diagonal elements are '1' and others are '0' EX: n = 3; then Resultant array would be [ 1 0...

plus de 10 ans il y a

A résolu


Get the array of sum for three consecutive numbers in an array
Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...

plus de 10 ans il y a

A résolu


Determine the mean of matrix
Determine the mean of matrix without using mean function Hint: use simple algorithm

plus de 10 ans il y a

A résolu


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

plus de 10 ans il y a

Charger plus