Community Profile

# Serhii Tetora

##### Last seen: 1日 前
164 2019 年以降の合計貢献数

#### Serhii Tetora's バッジ

Numbers with prime factors 2, 3 and 5.
Make a function which takes one positive integer n and returns a matrix with the numbers of the form (2^i)*(3^j)*(5^k) which are...

1日 前

Find vampire numbers
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such th...

3日 前

Proper Factors
Generate the proper factors of input integer _x_ and return them in ascending order. For more information on proper factors, ref...

3日 前

Multiples of a Number in a Given Range
Given an integer factor _f_ and a range defined by _xlow_ and _xhigh_ inclusive, return a vector of the multiples of _f_ that fa...

3日 前

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

3日 前

Smith numbers
Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at <http://en.wikipedi...

3日 前

Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

3日 前

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

10日 前

Error by creating video from images
I'm creating images from a data in parfor-loop. Then i want to create a video from this images, but have some error. I don't und...

18日 前 | 2 件の回答 | 0

### 2

Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

18日 前

Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...

18日 前

Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

18日 前

Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

18日 前

Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

18日 前

Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

18日 前

Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...

18日 前

Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

18日 前

Storing results from for-loop
idx = []; for i = 1:length(grfcutl) a = grfcutl{i}; idx(end+1) = find(a<=0,1,'first') end

24日 前 | 0

| 採用済み

How can I insert a detail in the peak of the curve ?
use function axes for zommed peak. you can define those Position and Limits. and annotation('arrow') for arrow.

29日 前 | 0

How to read text file with float and string types into matrix
%% Import data from text file % Script for importing data from the following text file: % % Auto-generated by MATLAB on 26-Au...

How to open .mpr data?
It's associated to a data file format of Visual FoxPro

| 採用済み

Curve fitting with a constrained y value to Zero
clear;close;clc x = [4.4 21.1 37.8 54.4 ]; y = [2.367224698 0 -1.857318083 -3.276015126]; w = [1 1000 1 1]; [xData...

Code for 'Reverse a Vector'
I had no this error with v = [ -75 -22 57 13 -34 2 -94 -49 -11] You can also use w = flip(v) It is same..

How to display cfit data on plot
coeffs = coeffnames(fitresults); coeffvals= coeffvalues(fitresults); ci = confint(fitresults,0.95); str1 = sprintf('\n %s = %...

Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

How to choose data with three conditions to plot contour
x(x<0 & x>-25) = 0;

| 採用済み

plot the month and year in X-axis
clear;clc;close all tab = xlsread('data_final'); Date = datetime(tab(:,1),tab(:,2),1); data = tab(:,3); [Date,I] = unique(...

| 採用済み

peak finding of a graph
x=V1_1_new; y=y1_1_new; [pks, locs] = findpeaks(y); plot(x,y,x(locs),pks,'o')

2ヶ月 前 | 0

Taking values from a Matrix and Inputting into an equation, using Loops
A = [1 2 3 4 5 6 7]; for i = 1:length(A) x = A(i); y(i) = x^2; end y

2ヶ月 前 | 0

| 採用済み

how add Month label in x axis
clear; close all; clc month = {'apr19', 'may19', 'june19', 'july19', 'aug19', 'sept19', 'oct19', 'nov19', 'dec19', 'jan20', 'fe...

2ヶ月 前 | 0

| 採用済み