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

1 month ago

Solved

Flip the vector from right to left

Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

1 month ago

Solved

Whether the input is vector?

Given the input x, return 1 if x is vector or else 0.

1 month ago

Solved

Get the length of a given vector

Given a vector x, the output y should equal the length of x.

1 month ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

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

1 month ago

Question

How to interpolate an intermediate curve from curves with different number of data points?

Hello See the attached picture. The picture shows 4 stress-strain curves, each curve is for a different temperature. What I wan...

6 months ago | 1 answer | 0

Question

Place MATLAB figures in image with placeholders for each figure

I am performing experiments that involves reading data from many sensors. Figures will be created that will represent the data f...

2 years ago | 0 answers | 0

Question

Building vector with for- and if statements

My goal is to find all divisors of 30 and put them in a vector. My code right now looks like: k=[]; c=[1:1:30]; for...

4 years ago | 1 answer | 0