A résolu


Matrix for beginners
Multiply x and y elemwise.

presque 4 ans il y a

A résolu


Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...

presque 4 ans il y a

A résolu


Square
X is a number, write a code, where Y should be the square of X.

presque 4 ans il y a

A résolu


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

presque 4 ans il y a

A résolu


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

presque 4 ans il y a

A résolu


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

presque 4 ans il y a

A résolu


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

presque 4 ans il y a

A résolu


Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

presque 4 ans il y a

A résolu


Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

presque 4 ans il y a

A résolu


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

presque 4 ans il y a

A résolu


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

presque 4 ans il y a

A résolu


length of a vector
Find twice the length of a given vector.

presque 4 ans il y a

A résolu


Draw a 'Z'.
Given _n_ as input, generate a n-by-n matrix like 'Z' by _0_ and _1_ . Example: n=5 ans= [1 1 1 1 1 0 0 0 1 ...

presque 4 ans il y a

A résolu


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

presque 4 ans il y a

A résolu


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

presque 4 ans il y a

A résolu


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

presque 4 ans il y a

A résolu


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

presque 4 ans il y a

A résolu


Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

presque 4 ans il y a

A résolu


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

presque 4 ans il y a

A résolu


Rounding
Round 10.67 and make 'y' equal to that number.

presque 4 ans il y a

A résolu


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

presque 4 ans il y a

A résolu


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

presque 4 ans il y a

A résolu


ASCii Code
Using Matlab get the ASCii for '?'

presque 4 ans il y a

A résolu


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

presque 4 ans il y a

A résolu


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...

presque 4 ans il y a

A résolu


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

presque 4 ans il y a

A résolu


What is this number?
X=1,Y=1 X=1903,Y=1903

presque 4 ans il y a

A résolu


Given A4 sizes find A3's long side
I think you know the relation between A3 and A4 paper so givens are sides of A4 x1=long side of A4 y1=short side of A4 y2 is ...

presque 4 ans il y a

Problème


Given A4 sizes find A3's long side
I think you know the relation between A3 and A4 paper so givens are sides of A4 x1=long side of A4 y1=short side of A4 y2 is ...

presque 4 ans il y a | 1 | 85 solveurs

A résolu


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

presque 4 ans il y a

Charger plus