Answered
How to include variables in an expression while plotting?
In this case, you don't really need to know Nthoff, as it is only a factor, so you can plot this while setting Nthoff=1; Usua...

10 years ago | 1

Answered
Insert figure title in multiple plots from a cell array
I personally prefer subplots, so I implemented that, but you can just as easily use figure(n) instead. If you use subplots, you ...

10 years ago | 0

Answered
Matlab Code for rank.mean
If you mean that the function should find the position of a value in a sorted vector, the code below should do that. x = [4 ...

10 years ago | 0

Answered
How can i determine a point of intersection in a curve ?
<https://nl.mathworks.com/matlabcentral/fileexchange/11837-fast-and-robust-curve-intersections This FEX submission> will do what...

10 years ago | 0

Answered
How to enquire previous purchase information
You can always contact the <https://nl.mathworks.com/support/contact_us/index.html support> for questions about licensing.

10 years ago | 0

Answered
How to define vector 'x' symbollically?
A = sym('a', [1 20]) A = [ a1, a2, a3, a4, a5, a6, a7, a8, a9, a10,... a11, a12, a13, a14, a15, a16, a17, a18, a19, ...

10 years ago | 0

Answered
how to match daily returns ?
So you have two datasets that are sampled over time that you need to resample over a common/matched timeframe? Am I understandin...

10 years ago | 0

Answered
How can i change rgb picture to red or green or blue
You can't use mean directly, because it changes your data type to double. I am assuming you mean that you want to convert your i...

10 years ago | 0

| accepted

Answered
How to load a folder containing 24 .mat files (one column) with varying lengths and plot each file using a for loop
You can generate a list of files and folders with the 'dir' command, but if you know what files exist, you can dynamically load ...

10 years ago | 0

Answered
imshow(image) and imshow(image,[])
If you type "help imshow" or "doc imshow", you can read what Al Bashir said in his comment. In my copy of Matlab the first lines...

10 years ago | 1

| accepted

Answered
End a Calculation if a condition is satisfied.
The command you are looking for is 'while' instead of 'for'. So replace the "for j=1:7839" in your code with "while abs(rk4-K...

10 years ago | 0

Answered
Determine set of data between multiple ranges from a matrix
There may be better solutions, but this code should do what you want. You can add in the equal signs if you need inclusive range...

10 years ago | 0

Solved


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

10 years ago

Solved


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

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

10 years ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

10 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

10 years ago

Solved


Find number of days
The input is two date in string format (dd-mm-yyyy) find out the number of days between these two dates. Example: input: ...

10 years ago

Solved


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

10 years ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

10 years 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:...

10 years ago

Solved


Calculate the derivative of a polynomial
Example: in = [ 1 1 1 ] out = [ 2 1 ]

10 years ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

10 years ago

Solved


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

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

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

10 years ago

Submitted


getfignum(n_requested)
Find a figure number that is unused

10 years ago | 21 downloads |

0.0 / 5