Community Profile

photo

Diogo Carvalho


Last seen: 2 days ago
86 total contributions since 2019

Diogo Carvalho's Badges

  • Community Group Solver
  • Thankful Level 1
  • Commenter
  • Solver

View details...

Contributions in
View by

Question


Error when running function "Attempt to execute SCRIPT support as a function: D:\MATLAB\toolbox\matlab\helptools\support.m"
I'm trying to run a function with inputs and I get this error. I've read the support thread found in: https://www.mathworks.co...

20 days ago | 0 answers | 0

0

answers

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

4 months ago

Solved


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

4 months ago

Solved


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

4 months ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

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

4 months ago

Solved


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

4 months ago

Solved


Find max
Find the maximum value of a given vector or matrix.

4 months ago

Solved


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

4 months ago

Question


How to restart a function if it takes too long to run?
Hello! I created a time stepping function to solve differential dynamic equations. Within this function I have a while loop that...

8 months ago | 1 answer | 0

1

answer

Answered
How to retrieve outputs from an .m file into my GUI?
I figured it out. Apparently, the input variables that went into the function still weren't considered as such. Thus, the functi...

9 months ago | 0

| accepted

Question


How to retrieve outputs from an .m file into my GUI?
I'm building a GUI using guide in which I want to use a drop down menu to perform a series of procedures. Those are as follows...

9 months ago | 2 answers | 0

2

answers

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

11 months ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

11 months ago

Solved


Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

1 year ago

Solved


Check to see if a Sudoku Puzzle is Solved
*Description:* Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...

1 year ago

Solved


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

1 year ago

Solved


Crunch that matrix!
You are given an M x N matrix. Write a script that will compress this matrix into an M x (N/3) matrix, where each of the terms ...

1 year ago

Solved


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

1 year ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

1 year ago

Solved


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

1 year ago

Solved


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

1 year ago

Solved


Write a function man that takes a row vector v and returns a matrix H as follows..
Write a function called man that takes a row vector v as an input and returns a matrix H whose first column consist of the eleme...

1 year ago

Solved


frame of the matrix
Given the matrix M, return M without the external frame.

1 year ago

Solved


Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

1 year ago

Question


Fitting a damping function to a sinusoidal response
I'm attempting to fit an exponential damping function to a sinusoidal wave by iterating zeta values. However, it seems I can ne...

1 year ago | 2 answers | 0

2

answers

Solved


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

1 year ago

Solved


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

1 year ago

Solved


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

1 year ago

Solved


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

1 year ago

Load more