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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...

plus de 10 ans il y a

A résolu


Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

plus de 10 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...

plus de 10 ans il y a

A résolu


What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

plus de 10 ans il y a

A résolu


Assigning a sum
* Write a statement that assigns numCoins with numNickels + numDimes.

plus de 10 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...

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


Plus x: A first program
_Solve this problem in Mathwork's online Cody system._ Write a statement that assigns y with 5 plus x. Ex: If input x = 2,...

plus de 10 ans il y a

A résolu


Integer indexing array: Weekend box office
The row array movieBoxOffice stores the amount of money a movie makes (in millions of $) for the 7 days of a week, starting with...

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


Remainder
Make 'y' equal to the remainder of 27 divided by 5. When x=27 and t=5

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

plus de 10 ans il y a

A résolu


Solving Quadratic Equations (Version 1)
Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

plus de 10 ans il y a

Question


pause with time and keyboard
I have put the |pause| function in my code. After pause I would like to restart the script after some time (i.e. 10 seconds) or...

environ 11 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How can I graph the following parametric functions on a 3d graph?
If R is a constant the code is: theta=[0:0.1:6.28]; phi=[0:0.1:6.28]; R=2; [THETA,PHI]=meshgrid(theta,phi); X2=...

plus de 11 ans il y a | 0

Réponse apportée
Figure of screen size
If your screen has for example the resolution 1920x1080: fig1 = figure; pos_fig1 = [0 0 1920 1080]; set(fig1,'Positio...

plus de 11 ans il y a | 0

Réponse apportée
parfor. Error: The variable eavg in a parfor cannot be classified.
*@Mohammad Abouali* : Thanks to you help I solve the problem in this way: parfor i0 = 1:size(vett,2) if curva~=2 ...

plus de 11 ans il y a | 0

Question


parfor. Error: The variable eavg in a parfor cannot be classified.
I have already read other topic on Errors and parfor but i don't find the answer to my problem. My code give me an Error: "E...

plus de 11 ans il y a | 2 réponses | 0

2

réponses

A résolu


Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

plus de 11 ans il y a

A résolu


Delete 2nd and 5th column of Given 6*6 matrix
Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

plus de 11 ans il y a

A résolu


Must be in the front row...
You are given a matrix followed by a single number. Your object is to write a script that will shift the matrix around so that ...

plus de 11 ans il y a

A résolu


Dudeney Numbers: Numbers which are the cube of their decimal sum
From Wikipedia: _A Dudeney number is a positive integer that is a perfect cube such that the sum of its decimal digits is equa...

plus de 11 ans il y a

A résolu


Change the first and last diagonal element of the identity matrix to zero
Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

plus de 11 ans il y a

A résolu


Mongean Shuffle
A Mongean shuffle of an n card deck starts with putting the initial deck on the left hand side. * The top card of the deck is...

plus de 11 ans il y a

A résolu


Nilpotent matrix
Check if matrix A is <http://mathworks.com/ nilpotent>.

plus de 11 ans il y a

A résolu


why the translation parameters calculated by cp2tform based on point sets are not correct?
I'd like to calculate the affine transformation parameters(translation, scale, rotation) based on two point sets: base_points an...

plus de 11 ans il y a

A résolu


Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

plus de 11 ans il y a

Charger plus