Solved

Mid-term report

You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

etwa 4 Stunden ago

Solved

Simple Matrix

Make the following matrix without typing it in one by one. [1 2 3; 2 4 6; 4 8 12] x=[1 2 3].

etwa 4 Stunden ago

Solved

Problem for beginners

Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row. Example: X=[1;2;3...

etwa 5 Stunden ago

Solved

Problem for beginners

M is a nxm matrix. Swap the fist and the second last column with eachother. X=[1 2 3;4 5 6;7 8 9] Y=[2 1 3;5 4 6;8 7 9]

etwa 5 Stunden ago

Solved

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

etwa 5 Stunden ago

Solved

Square root

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

etwa 5 Stunden ago

Solved

Find two triangular numbers whose sum is input.

Find two triangular numbers whose sum is _input_. Note: The difference beetween the triangular numbers should be minimum.

2 Tage ago

Solved

Sums of Multiple Pairs of Triangular Numbers

This is a follow-up to <https://www.mathworks.com/matlabcentral/cody/problems/44289 Problem 44289> - Find two triangular numbers...

2 Tage ago

Answered

For Loop to generate value alternately

% initialize n length_of_beam = 12; for i = 1 : n length_of_beam = length_of_beam +3; if mod(i,2) == 0 ...

For Loop to generate value alternately

% initialize n length_of_beam = 12; for i = 1 : n length_of_beam = length_of_beam +3; if mod(i,2) == 0 ...

2 Tage ago | 0

| accepted

Solved

Rotate a Matrix by 90 degrees

Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

3 Tage ago

Solved

Replicate elements in vectors

Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...

3 Tage ago

Solved

Solve the set of simultaneous linear equations

Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

3 Tage ago

Solved

Convert yards to feet

The goal of this script is to convert a value given in yards to feet.

3 Tage ago

Solved

Find the dimensions of a matrix

Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

3 Tage ago

Solved

Times 9

Try out this test problem first. Given the variable x as your input, multiply it by nine and put the result in y. Examples...

3 Tage ago

Solved

Times 3

Try out this test problem first. Given the variable x as your input, multiply it by three and put the result in y. Example...

3 Tage ago

Solved

Inscribed Pentagon?

Your function will be provided with the five vertices of a pentagon (p) as well as the center point (cp) and radius (r) of a cir...

5 Tage ago

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.

Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

5 Tage ago

Solved

I Plead the Fifth

Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

5 Tage ago

Answered

Why cant I predict kstep ahead when adding System Identification models?

https://de.mathworks.com/help/ident/ref/compare.html Check this link. It says : 'compare ignores kstep when sys is an iddata...

Why cant I predict kstep ahead when adding System Identification models?

https://de.mathworks.com/help/ident/ref/compare.html Check this link. It says : 'compare ignores kstep when sys is an iddata...

5 Tage ago | 0

Answered

can any one solve this ?

m = 20; % kg k = 20; %N/m x_0 = 0.5; %m c1 = 5; %underdamped c2 = 40; % critically damped c3 = 200; %overdamped syms x(t...

can any one solve this ?

m = 20; % kg k = 20; %N/m x_0 = 0.5; %m c1 = 5; %underdamped c2 = 40; % critically damped c3 = 200; %overdamped syms x(t...

5 Tage ago | 1

Solved

Back to basics 21 - Matrix replicating

Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...

18 Tage ago