Risolto


Draw matrix 'Swiss flag'( Euro 2020)
Draw a x-by-x matrix 'Swiss flag' using '0' and '1'.(x is odd and bigger than 4) Example x=5 ...

oltre 4 anni fa

Risolto


Easy Sequences 5: Project Euler Problem 1 - Again!
We are all familiar with Project Euler Problem 1. This time let's try it on bigger multiples and larger range. Find the sum of ...

oltre 4 anni fa

Risolto


Easy Sequences 4: Eliminate the Days of Confusion
If a date is written in purely numeric format some dates can be confusing, if we don't know the date format used. For example, "...

oltre 4 anni fa

Risolto


Easy Sequences 3: Prime 44-number Squares
The positive integers 62 and 238 are related. Their squares (3844 and 56,644) both end in '44'. In fact, 62 and 238 are the 3rd ...

oltre 4 anni fa

Risolto


Easy Sequences 2: Trigonometric function with integral input and output
The function 'F', defined as: , will always return an integer if the input is a natural number (in radian...

oltre 4 anni fa

Risolto


Easy Sequences 1: Find the index of an element
The nth element of a series is defined by: . Obviously, the first element . Given the nth element , find the value of the corre...

oltre 4 anni fa

Risolto


Total resistance of resistors in parallel
What is the total resistance of a number of resistors in parallel? A vector R contains the resistances (in Ohm) of n resistors,...

oltre 4 anni fa

Risolto


Total resistance of resistors in series
What is the total resistance of a number of resistors in series? A vector R contains the resistances (in Ohm) of n resistors, w...

oltre 4 anni fa

Risolto


Basic: fft
Calculate the value using fft

oltre 4 anni fa

Risolto


UICBioE240 problem 1.12
The mathematical quantities e^x, ln x, and log x are calculated in Matlab using the expressions exp(x), log(x), and log10(x), re...

oltre 4 anni fa

Risolto


Leftovers? Again?!
I am thinking of a positive number X. To determine what number I am thinking of, I will give you two 1xN vectors. The first ve...

oltre 4 anni fa

Risolto


Find the largest number
Find the largest number |x| among 4 numbers given as variables |a|, |b|, |c|, and |d|. Example: Input: a = 4; b = 7; c ...

oltre 4 anni fa

Risolto


Create a vector
Create a vector from 0 to n by intervals of 2.

oltre 4 anni fa

Risolto


make histogram
You probably know the function hist(x,n) to get the histogram. Now try to write the function yourself! For the cheaters wanting...

oltre 4 anni fa

Risolto


A little bit of luck needed
This one may require a little bit of guess work, but it is possible. Hints: - The same solution might fail the tests once and ...

oltre 4 anni fa

Risolto


ICFP2021 Hole-In-Wall: Calculate Score
The ICFP held its annual 3-day contest in July 2021 with Hole-In-Wall. Contest Specification. The contest folds the figure in R...

oltre 4 anni fa

Risolto


Which Prime
Given two prime numbers, specify the relation between them i.e. - 'Twin Prime', 'Cousin Prime', 'Sexy Prime' or 'None'

oltre 4 anni fa

Risolto


Create array of all Distances between two Sets of Points
This Challenge is a subsection of Martian Pranks based on Tim's efficient Distance calculation between sets of points. Given Po...

oltre 4 anni fa

Risolto


Find the maxmum value of N*N Matrix
Input x=[1 2 3; 4 5 6; 7 8 9] output: y=9

oltre 4 anni fa

Risolto


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

oltre 4 anni fa

Risolto


Plotting Practice
Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...

oltre 4 anni fa

Risolto


arrayfun bomb

oltre 4 anni fa

Risposto
Equivalent of c++'s NULL or python' s None in MATLAB
I think you can use class.empty for null in matlab classdef A < handle properties empty = A.empty; end end...

oltre 4 anni fa | 0

Risolto


Divisible by n, prime divisors (including powers)
For this problem, you will be provided an array of numbers (not necessarily in order). Return the array of numbers with only pri...

quasi 5 anni fa

Risolto


What? Paradox?
What's going on here?

quasi 5 anni fa

Risolto


Solve a nonlinear difference equation

quasi 5 anni fa

Risolto


Functionality 1
It's all about functionality. *Cheating is allowed but not required*

quasi 5 anni fa

Risolto


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

quasi 5 anni fa

Risolto


Sort Except Zeros
Sort the numbers in a vector. But the position of zeros should not be changed. Example: sort_except_zeros( [5 3 0 0 2 4] ) == [...

circa 5 anni fa

Carica altro