Community Profile

photo

Panagiotis Panagopoulos Papageorgiou


Last seen: 5 months ago
17 total contributions since 2019

Panagiotis Panagopoulos Papageorgiou's Badges

  • Solver
  • Thankful Level 1

View details...

Contributions in
View by

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

8 months ago

Solved


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

8 months ago

Solved


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

1 year ago

Solved


The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

1 year ago

Solved


Max of a Vector
Write a function to return the max of a vector

1 year ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

1 year ago

Solved


Return area of square
Side of square=input=a Area=output=b

1 year ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

1 year 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 year ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

1 year ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

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

1 year ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

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

1 year ago

Question


Taylor Series of e^x on point 1
Greetings, I am trying to make my own script where I can approximate a function using a Taylor polynomial. However, when I try ...

1 year ago | 1 answer | 0

1

answer

Question


Is it possible to assign the constant value of a function handle to a variable?
Hello, My program can sometimes generate this function handle: g = @() 1.0 Or generally: g = @() c , c: constant Is it po...

2 years ago | 2 answers | 0

2

answers

Question


Is there any way to separate the terms of a product?
Hello, Let's say I have this function_handle: f = @(x) exp(x-2)*log(x) Is it possible to assign each function that comprises t...

2 years ago | 1 answer | 0

1

answer