Community Profile

# Diogo Carvalho

Last seen: 5 månader ago Active since 2019

All

#### Content Feed

View by

Solved

Double Factorial
Return double factorial n(n-2)...(5)(3)(1), n>0, odd n!! = n(n-2)...(6)(4)(2), n>0, even 1 ...

Solved

Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

Solved

letter yes yes & letter no no
Split a string into two strings, wherein the first string has all alphabetic letters and the second string has all the remaining...

Solved

Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

Solved

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

Solved

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

Solved

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

Solved

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

Solved

Stress-Strain Properties - 3
A brittle material will not exhibit a yield point. In other words, the yield point and failure point coincide. In such cases, th...

Solved

Stress-Strain Properties - 1
This is the first in a series of problems regarding mechanics of materials, in particular, material properties drawn from stress...

Question

Create a surface from several 1D plots
I have fitted several groups of scattered points (x,z) into 1D plots which vary on a third variable y. I now want to connect the...

### 2

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

ungefär ett år ago | 0 answers | 0

### 0

Solved

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

mer än ett år 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 ...

mer än ett år ago

Solved

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

mer än ett år ago

Solved

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

mer än ett år 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 ...

mer än ett år ago

Solved

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

mer än ett år ago

Solved

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

mer än ett år ago

Solved

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

mer än ett år 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...

mer än ett år ago | 1 answer | 0

### 1

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

nästan 2 år 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...

nästan 2 år ago | 2 answers | 0

### 2

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

nästan 2 år 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...

nästan 2 år 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...

ungefär 2 år 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...

ungefär 2 år 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...

ungefär 2 år 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 ...

ungefär 2 år 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...

ungefär 2 år ago