Answered

How could I create a sliding window of 300 seconds, with an overlap of 60 seconds?

for i = 0:60:length(ECG)-300 temp = ECG(i+1 : 300 + i) end

How could I create a sliding window of 300 seconds, with an overlap of 60 seconds?

for i = 0:60:length(ECG)-300 temp = ECG(i+1 : 300 + i) end

circa 2 anni ago | 1

Answered

How to use the existing matlab program to build a GUI?

For creating a GUI you have to use command "guide". Hope this video lets you get started: <https://www.youtube.com/watch?v=ru...

How to use the existing matlab program to build a GUI?

For creating a GUI you have to use command "guide". Hope this video lets you get started: <https://www.youtube.com/watch?v=ru...

circa 2 anni ago | 0

Answered

matlab code of some mobile wsn routing protocols

Will this work? <https://www.mathworks.com/matlabcentral/fileexchange/64600-wireless-sensor-network-deployment-using-matlab WSN ...

matlab code of some mobile wsn routing protocols

Will this work? <https://www.mathworks.com/matlabcentral/fileexchange/64600-wireless-sensor-network-deployment-using-matlab WSN ...

circa 2 anni ago | 0

Answered

below is a program that i am using to derive idf curves .suppose i have the code for plotting idf curve for one particular grid or place but now i need to plot 10 idf curves using that code simultaneously. i introduced a outer for loop will it do?

Try to use subplot of MATLAB to plot different plots in a form of grid: <https://in.mathworks.com/help/matlab/ref/subplot.html S...

below is a program that i am using to derive idf curves .suppose i have the code for plotting idf curve for one particular grid or place but now i need to plot 10 idf curves using that code simultaneously. i introduced a outer for loop will it do?

Try to use subplot of MATLAB to plot different plots in a form of grid: <https://in.mathworks.com/help/matlab/ref/subplot.html S...

circa 2 anni ago | 0

Answered

how to fill in zeros in index not used?

B = zeros(1,length); B(2) = 5; //Just initialize the vector with zeros(m,n) function and then feed the data as you want

how to fill in zeros in index not used?

B = zeros(1,length); B(2) = 5; //Just initialize the vector with zeros(m,n) function and then feed the data as you want

circa 2 anni ago | 0

Answered

How can I calculate the area under the peaks for this data?

Have you tried this way: <https://in.mathworks.com/help/matlab/ref/area.html Finding area of 2D plot>

How can I calculate the area under the peaks for this data?

Have you tried this way: <https://in.mathworks.com/help/matlab/ref/area.html Finding area of 2D plot>

circa 2 anni ago | 0

Answered

why am i getting this error ? what to do?

Replace datadir = 'C:\Users\AKASH\Pictures\works\**'; with datadir = 'C:\Users\AKASH\Pictures\works\**\'; and try again. But ...

why am i getting this error ? what to do?

Replace datadir = 'C:\Users\AKASH\Pictures\works\**'; with datadir = 'C:\Users\AKASH\Pictures\works\**\'; and try again. But ...

circa 2 anni ago | 0

| accepted

Solved

Calculate the Hamming distance between two strings

Inspired by a similar Cody problem found <http://www.mathworks.com/matlabcentral/cody/problems/93-calculate-the-levenshtein-dist...

circa 2 anni ago

Solved

Number of 1s in a binary string

Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

circa 2 anni ago

Solved

Reverse Calculator

Use this reverse calculator and give correct output Its simple, In my Reverse calculator if you press 0 it will be considered...

circa 2 anni ago

Solved

Basics: counting digits of a number irrespective of the sign

publish the number of digits in any input integer example: -23---->2

circa 2 anni 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...

circa 2 anni ago

Solved

Create a square matrix of multiples

Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

circa 2 anni ago

Solved

Output any real number that is neither positive nor negative

Output any real number that is neither positive nor negative

circa 2 anni ago

Solved

Compare two input matrices

Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

circa 2 anni ago

Solved

Solving Quadratic Equations (Version 1)

Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

circa 2 anni 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...

circa 2 anni ago

Solved

Remove the positive integers.

Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

circa 2 anni ago

Solved

Matlab Basics - Switching Assignments

Switch assignments for variables x and y, for example start with x = 1 and y = 3 end with y = 1 and x = 3 Do NOT simply r...

circa 2 anni ago

Solved

Generate a NaN...on purpose

The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...

circa 2 anni ago

Solved

Create matrix of replicated elements

Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

circa 2 anni ago

Solved

04 - Scalar Equations 3

Define the variables a, b, and c: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b....

circa 2 anni ago

Solved

Find the hypotenuse

Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

circa 2 anni ago

Solved

Pad zero between every adjacent values of the vector.

you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

circa 2 anni ago

Solved

frame of the matrix

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

circa 2 anni ago

Solved

Sum all integers from 1 to 2^x

Given a number x, your function must return the summation of all integers from 1 to 2^x.

circa 2 anni ago