A résolu


Inner product of two vectors
Find the inner product of two vectors.

plus de 3 ans il y a

A résolu


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

plus de 3 ans il y a

A résolu


Determine if x is a combination of m and n
Given positive integers x, m, and n, determine if x can be written as x = am + bn for any (non-negative) integers a and b. Your ...

plus de 3 ans il y a

A résolu


Simpson's Paradox - Calculate correlation coefficients for groups of data
Simpson's Paradox is a statistical phenomenon where groups of data can have a characteristic while the whole data set together h...

plus de 3 ans il y a

A résolu


Generate this matrix
Generate the following matrix. n = 2; out = [-4 -3 -2 -1 0 -3 -2 -1 0 1 -...

plus de 3 ans il y a

A résolu


Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

plus de 3 ans il y a

A résolu


Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...

plus de 3 ans il y a

A résolu


Calculating Student Grades
The matrix grades contains raw grades for 7 students who took your course. Each row represents a different student. The first 7 ...

plus de 3 ans il y a

A résolu


Calculate the mean of each half of a matrix
Given a matrix with an even number of columns, n, return a 1-by-2 row vector where the first element is the mean of all the elem...

plus de 3 ans il y a

A résolu


Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...

plus de 3 ans il y a

A résolu


Dog Statistics
The vectors ht and wt contains the heights and weights of 20 golden retrievers. In some cases, it was not possible to make both ...

plus de 3 ans il y a

A résolu


Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A soumis


Create an Animated Movie (Facet Model) Cow Meets UFO
These scripts illustrate using facets to create a 3d animated cartoon.

environ 4 ans il y a | 2 téléchargements |

0.0 / 5
Thumbnail

Réponse apportée
Im designing a game of battleship, but. im trying to use a code to prevent the user from placing a ship out of bounds
Here is a solution with user interaction/prompting: flagInteractive = 1; % prompt user for ship placement flagRepeatable = 0; ...

environ 4 ans il y a | 0

Réponse apportée
how to split image to 3 parts
Here are two ways: close all clear clc [imdata,~] = imread('image.jpeg'); % split into three color channels of equal ...

environ 4 ans il y a | 0

Réponse apportée
How to plot Taylor diagram for four time series.
Here's how: Download this: https://www.mathworks.com/matlabcentral/fileexchange/20559-taylor-diagram And the attached allsta...

environ 4 ans il y a | 1

Réponse apportée
Index exceeds the number of array elements. Index must not exceed 1.
Hi, I was trying to figure out what your data are to help, but I couldn't find it online. I did find a spectrum at simbad. Is...

environ 4 ans il y a | 0

Réponse apportée
How can I plot on the same four figures on my code which changes while list numbers changing?
There's something amiss with the xlsx reading, but that wasn't the question. This will update the plots, with a slight delay be...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Unwrapping the mesh on 2D plane
Here's one way - it's actually a bit overcomplicated than it needs to be in the code below to make it more general: R = 1; Num...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Error in copying figure - Variables - Error using Builtin Path - Could not be absulutized
type >> which pathdef It could be that the pathdef.m file is missing. If it is missing, type >> restoredefaultpath >> matl...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Calculating closing speed between pair of aircraft
Is this what you're looking for? % Given values of positions and velocities of airplanes t0_s = [12.0*3600.0 + 0.0*60.0 + 2.0;...

environ 4 ans il y a | 0

Réponse apportée
Euclidian distance showing different result for different formula
Some code - look at the sizes of the arrays to see why: nsamples = 25; ncomponents = 4; s = RandStream('dsfmt19937','Seed',11...

environ 4 ans il y a | 0

Réponse apportée
Need help on this program
Try something like this: function valid = valid_date(year,month,day) if ((isscalar(year) && year>0 ) && (isscalar(month) && mo...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
When I try simple statistics function normpdf, it does not work.
You can write your own normpdf if that is all you need. Here it is as an anonymous function (see: https://www.originlab.com/doc...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Check for missing argument or incorrect argument data type in call to function 'integral'.
One way is to use anonymous functions f = @(x) sqrt(2)*x.^3; g = @(theta) 4+2*(sin(theta).^2); a = integral(f, 0, 9); b ...

environ 4 ans il y a | 1

Réponse apportée
Plot overlapped points (Matlab 2020a)
Just some ideas: npts = 200; true_value = randn(npts,1); Estimates1 = true_value + 0.01*randn(npts,1); Estimates2 = true_val...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
read and use .txt file
There's a lot of extra characters in your text file. % frequency, amplitude and phase str = fileread('draft.txt'); str = st...

environ 4 ans il y a | 0

A soumis


Smooth Operator (Stineman 1D Interpolation)
interp1_stineman - interpolates using the Stineman interploation. Demo shows performance against spline and pchip interpolations...

environ 4 ans il y a | 2 téléchargements |

0.0 / 5
Thumbnail

Réponse apportée
Getting "Error using horzcat." when trying to draw displacement graph for a Mechanism
This executes without error, but I'm unclear about whether it solves your problem. A0A = 12.6; AB = 14; AD = 37.1; EB = 45.5; ...

environ 4 ans il y a | 0

Charger plus