Python, C++, C
Spoken Languages:
English
Statistiques
RANG
4 771
of 295 818
RÉPUTATION
10
CONTRIBUTIONS
0 Questions
12 Réponses
ACCEPTATION DE VOS RÉPONSES
0.00%
VOTES REÇUS
3
RANG
of 20 283
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
how to do convolution without commands
% The code below is for convolution without conv command. % Idea behind it is multiplying a element of x with every element in ...
plus de 2 ans il y a | 0
A résolu
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...
presque 3 ans il y a
A résolu
Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...
presque 3 ans il y a
A résolu
Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...
presque 3 ans il y a
A résolu
Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...
presque 3 ans il y a
A résolu
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
presque 3 ans il y a
A résolu
Largest Prime Number
Given a matrix X, find the largest prime number in X.
presque 3 ans il y a
How to Concatenate 5 differently named variables in one variable using foor loop?
a1 = 5; a2 = 10; a3 = 15; combined_row_wise = [a1,a2,a3] combined_column_wise = [a1;a2;a3]
presque 3 ans il y a | 0
A résolu
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...
presque 3 ans il y a
A résolu
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>> ...
presque 3 ans il y a
How to find the roots of a trigonometric equation?
syms e x t_c eqn = e.*cos(x) + t_c.*cos(x) == 0; solve(eqn,x) here gamma*L = x t_c - theta c solve(equation , varaiable...
presque 3 ans il y a | 0
A résolu
Generate a matrix as follows
write a Function that gives like the following for a random n: n=2 ans= [ 0 1 1 0] n=6 ans= [ 0 ...
presque 3 ans il y a
A résolu
Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...
presque 3 ans il y a
A résolu
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 ...
presque 3 ans il y a
Find Coefficient of a Trigonometric Function
syms x f = 5.*x.^2 + 7.*x + 3 coeffs(f) Use coeffs function. Returns x^0 , x^1 .. ,x^n coeffs. Also works with sin(x) , cos...
presque 3 ans il y a | 0
how can i sum X's or R's values that their nl=1?
Matlab actually takes every column as variables. In the below shown example sum gives the result as follows ,Output is 2 4 6 ...
presque 3 ans il y a | 0
| A accepté
please help me to solve this problem.plot a message signal with 5Hz and the amplitude is 10. Then plot the carrier signal with 50Hz and the amplitude is 10. Finally, plot th
clc clear t = 0:0.01:10; subplot(3,1,1); m = sin(pi*t); %Message signal plot(t,m,'Linewidth',2,'Color','b'); subplo...
presque 3 ans il y a | 0
how to find the element which is greater than or equal to its row and smaller or equal to its column in a matrix
function indices = saddle(Z) indices1 = []; %Creating a temporary matrix.. [r c] = size(Z); for i = 1:r row_sum = sum(...
environ 3 ans il y a | 0
A résolu
Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...
environ 3 ans il y a
A résolu
Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...
environ 3 ans il y a
A résolu
Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vert...
environ 3 ans il y a
A résolu
The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...
environ 3 ans il y a
next prime number using While loops
function answer = next_prime(n) %the function recieves a scalar 'n' flag = 1; % a variable flag will act as break statement ...
environ 3 ans il y a | 0
A résolu
Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...
environ 3 ans il y a
A résolu
Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...
environ 3 ans il y a
A résolu
Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...
environ 3 ans il y a
A résolu
Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...
environ 3 ans il y a
A résolu
Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...
environ 3 ans il y a
A résolu
Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....
environ 3 ans il y a