Answered

How to create this by a for loop?

Assuming that the f_t+d values are in a 1-D array in contiguous locations, you could use the following code to get the required ...

How to create this by a for loop?

Assuming that the f_t+d values are in a 1-D array in contiguous locations, you could use the following code to get the required ...

12 meses ago | 0

Answered

How to do a error bar from two curves along y axis in the same plot?

From what I understand, you are trying to plot the curve (x1, y1) along with the deviations of the curve (x2, y2) from (x1, y1)....

How to do a error bar from two curves along y axis in the same plot?

From what I understand, you are trying to plot the curve (x1, y1) along with the deviations of the curve (x2, y2) from (x1, y1)....

12 meses ago | 0

Answered

Trying to break time series data up by season

The "getsampleusingtime(tsin,starttime,endtime)" function could be used to create subsets of time series data. You can specify t...

Trying to break time series data up by season

The "getsampleusingtime(tsin,starttime,endtime)" function could be used to create subsets of time series data. You can specify t...

12 meses ago | 0

Answered

How can I run this loop in parallel ?

Since you have mentioned that you are new to parallel programming in MATLAB, I suggest going through the following resources: ...

How can I run this loop in parallel ?

Since you have mentioned that you are new to parallel programming in MATLAB, I suggest going through the following resources: ...

12 meses ago | 0

Answered

Plotting two arrays of different lengths

From what I understand, you want to increase the size of a vector to match a specified value, without losing any information. I ...

Plotting two arrays of different lengths

From what I understand, you want to increase the size of a vector to match a specified value, without losing any information. I ...

12 meses ago | 0

Answered

Example code for deep Q-learning

Consider going through the following MATLAB answers page. It has links to tutorials and documents containing example codes, that...

Example code for deep Q-learning

Consider going through the following MATLAB answers page. It has links to tutorials and documents containing example codes, that...

12 meses ago | 0

Answered

Q-learning with neural network

MATLAB's reinforcement learning toolbox has tools for implementing a variety of RL algorithms such as Deep Q-Network (DQN), Adva...

Q-learning with neural network

MATLAB's reinforcement learning toolbox has tools for implementing a variety of RL algorithms such as Deep Q-Network (DQN), Adva...

12 meses ago | 0

Answered

unit step function to mimic signal

From what I understand, you want the falling edge of your unit step signal to coincide with that of the square wave. If that ...

unit step function to mimic signal

From what I understand, you want the falling edge of your unit step signal to coincide with that of the square wave. If that ...

12 meses ago | 0

Answered

Draw the vector field and eigenvectors in the phase portrait for Van der Pol ODE

If you can calculate the vector field values at every point, then the resulting data can be plotted using the “quiver” function,...

Draw the vector field and eigenvectors in the phase portrait for Van der Pol ODE

If you can calculate the vector field values at every point, then the resulting data can be plotted using the “quiver” function,...

12 meses ago | 0

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

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

12 meses ago

Solved

Interpolator

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

12 meses ago

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

12 meses ago

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

12 meses ago

Solved

Fibonacci sequence

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

12 meses ago

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

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

12 meses ago

Solved

Swap the first and last columns

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

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

12 meses 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]; ...

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

12 meses ago

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

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

12 meses ago

Solved

Determine if input is odd

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

12 meses 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:...

12 meses ago

Answered

Why the thd function do not give same answer

I believe this is because the "thd(x)" function calculates the Total harmonic distance in a way different from the one you have ...

Why the thd function do not give same answer

I believe this is because the "thd(x)" function calculates the Total harmonic distance in a way different from the one you have ...

alrededor de 1 año ago | 0

Answered

Removing a syms variable from a For loop solution

Based on on the provided equation and code, here's something I came up with to calculate the neede values: syms x N = 100 ...

Removing a syms variable from a For loop solution

Based on on the provided equation and code, here's something I came up with to calculate the neede values: syms x N = 100 ...

alrededor de 1 año ago | 0

Answered

Designing a band pass filter for filtering a sinusoidal function with a known frequency from a signal with an unknown sampling rate

The signal processing toolbox will give you the necessary functionality to carry out filtering of signals. The following will...

Designing a band pass filter for filtering a sinusoidal function with a known frequency from a signal with an unknown sampling rate

The signal processing toolbox will give you the necessary functionality to carry out filtering of signals. The following will...

alrededor de 1 año ago | 0

Answered

Is it possible to have AppDesigner started automatically when I start Matlab ?

Create a startup.m file in the userpath folder, which is on the MATLAB® search path. Add commands you want executed at startup. ...

Is it possible to have AppDesigner started automatically when I start Matlab ?

Create a startup.m file in the userpath folder, which is on the MATLAB® search path. Add commands you want executed at startup. ...

alrededor de 1 año ago | 0

| accepted