Solved

Find the Best Hotels

Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

9 months ago

Solved

Project Euler: Problem 3, Largest prime factor

The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

9 months ago

Solved

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

9 months ago

Answered

How does one solve simultaneous difference (not differential) equations?

It's better if you convert your set of diference equations into matrices and solve it by "\" operator.

How does one solve simultaneous difference (not differential) equations?

It's better if you convert your set of diference equations into matrices and solve it by "\" operator.

9 months ago | 0

Solved

Reverse the vector

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

9 months ago

Solved

Calculate Inner Product

Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

9 months ago

Solved

Calculate BMI

Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

9 months ago

Solved

Plot Damped Sinusoid

Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

9 months ago

Solved

Calculate a Damped Sinusoid

The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

9 months ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

9 months ago

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4

Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

9 months ago

Solved

Summing digits

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

9 months ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

9 months ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

9 months ago

Solved

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

9 months ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

9 months ago

Solved

Solve a System of Linear Equations

*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

9 months ago

Solved

Times 2 - START HERE

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

9 months ago

Answered

Simulink Onramp doesn't work properly_MATLAB version R2019b

Hi. I had the same problem and have fixed: I updated my version from R2019b to R2020a (my license was still valid).

Simulink Onramp doesn't work properly_MATLAB version R2019b

Hi. I had the same problem and have fixed: I updated my version from R2019b to R2020a (my license was still valid).

10 months ago | 0

Answered

Problem with order of substitution with odeToVectorfield- Solving second order ode with ode45

Define your equations upside down, it worked for me. For example: clear syms x1(t) x2(t) f1(t) f2(t) m=[2 3];c=[3 1 1];k=[3 2...

Problem with order of substitution with odeToVectorfield- Solving second order ode with ode45

Define your equations upside down, it worked for me. For example: clear syms x1(t) x2(t) f1(t) f2(t) m=[2 3];c=[3 1 1];k=[3 2...

1 year ago | 0

Answered

Finding best set of parameters by fitting the experimental data to different theoretical data obtained using different parameters.

Your question isn't very clear. The first thing you can try, ever, is to plot your theoretical and experimental data, afterwards...

Finding best set of parameters by fitting the experimental data to different theoretical data obtained using different parameters.

Your question isn't very clear. The first thing you can try, ever, is to plot your theoretical and experimental data, afterwards...

2 years ago | 0

Answered

HOW TO IMPORT MATLAB DATA FROM Text files (* .txt)

Try something explained here: https://la.mathworks.com/help/matlab/import_export/ways-to-import-text-files.html Or here: https:...

HOW TO IMPORT MATLAB DATA FROM Text files (* .txt)

Try something explained here: https://la.mathworks.com/help/matlab/import_export/ways-to-import-text-files.html Or here: https:...

2 years ago | 0

| accepted