Question

How to read empty row of an excel sheet with a matlab command?

Assume i have data within range (A2:E2) in an Excel sheet. I want to update the excel sheet with a matlab command ie whenever i ...

3 years ago | 1 answer | 0

Question

How to access a workspace variable from matlab app designer?

My matlab app contains a push button. in the callback function i have to access variables created in workspace. when i tried ...

3 years ago | 0 answers | 0

Question

how to access a workspace call array in appdesigner and get the transpose of that

how to load a workspace call array in appdesigner and get the transpose of that. i have a push button in my app.in my push butto...

3 years ago | 1 answer | 0

Question

Operands to the || and && operators must be convertible to logical scalar values?

I am developing an app using Matlab app designer. I am pretty new to Matlab app designing so i request you to please help me. Th...

3 years ago | 2 answers | 0

Question

How to identify array elements that occur more than once ?

For example D=[1 2 3 3 3 4 5 6 7 7 8] I want to identify the elements that occur more than once. The expected answer wit...

3 years ago | 2 answers | 0

Question

how to find the location of a specific array element within the specific range in matlab?

for example: d=[1 2 3 4 8 10 4 5 6 12 10 13]; i want to find the location of 10 within the range [4 8] the expected answ...

3 years ago | 2 answers | 0

Question

How to prevent display of specific warning message in matlab?

How to prevent display of specific warning message in matlab? for example my warning message is: Warning: Invalid MinPea...

3 years ago | 1 answer | 0

Question

how to implement KNN classification in simulink

How to implement KNN classification in simulink. I used fitcknn and predict functions in my script file,but the same cannot be ...

3 years ago | 1 answer | 0

Question

I have a knn classification model.i want to simulate the same in simulink

I have a knn simulation model. I used functions fitcknn and predict in my script...i want to simulate the same in smulink..kindl...

3 years ago | 1 answer | 1

Question

syntax to give multiple conditions in if and execute the block if any one of the conditions satisfies

syntax to give multiple conditions in if and execute the block if any one of the conditions satisfies

3 years ago | 1 answer | 0

Question

matlab code to find the next highest integer

suppose i have a array a=[1 2 3 4 8 10 24] i have a random value for ex r=6; i have to find the next highest integer to 6 in...

3 years ago | 2 answers | 0

Question

matlab code to make values of an array in specific ranges(index positions) equal to zero

matlab code to make values of an array in specific ranges equal to zero ex: d=[1 2 3 4 5 6 7 8 9 10 11 12 13] st...

3 years ago | 2 answers | 0

Question

matlab code to find the position of values in a vector within the specified range that meets a certain condition?

how to find the index positions of values in a vector within the specified range that meets a certain condition? ex: d=[1 2 1...

3 years ago | 1 answer | 0

Question

How to detect peaks above a certain threshold in matlab

How to detect peaks above a threshold in a signal and store their locations. I wrote a code: [Pks,locs]=findpeaks(x,100...

3 years ago | 3 answers | 0

Question

substitute for discretize command

discretize function was available in new version of matlab..but i have older version (R2014b)in my desktop. i cannot install new...

3 years ago | 1 answer | 0

Question

matlab command to find discrete time transfer ?

matlab command to find discrete time transfer in Z domain?

4 years ago | 0 answers | 0

Question

how to display the values of an array within the specific bin ranges (index positions)?

i have [1xm] array.How to display the values of an array within the specific bin ranges (index positions)? ex: x=[1 2 4 ...

4 years ago | 1 answer | 0

Question

How to display values of an array only in the specified ranges?

i have [1xm] array of values. i want to display the values only in the ranges given in seperate arrays: lowerlimits=[2 6 10] u...

4 years ago | 1 answer | 0

Question

how to get number that occurs maximum number of times in an array of numbers?

i have an array of numbers. I want to get number that occurs maximum nukindly help me with the matlab code.mber of times in the ...

4 years ago | 1 answer | 0

Question

How to retain and display pulses with specific duty cycle and period in a PWM signal and delete the rest?

I have a PWM signal with variable periods and duty cycles.How to display pulses with specific duty cycle and period in a PWM sig...

4 years ago | 0 answers | 0

Question

how to retain the pulses of a specific duration and delete the rest ?

i have a vetor which has pulses of different durations. I want to capture the pulses with a specific duration and delete the re...

4 years ago | 1 answer | 0

Question

how to measure the pulse width?

i have a vector that has square pulses of different durations. i want to measure the pulse width of each pulse. Kindly help me w...

4 years ago | 1 answer | 0

Question

what command to predict class of test data using created KNNclassification model?

i have a [1x1000] training vector and a categorical response variable resp; ihave created KNNclassification model using th...

4 years ago | 1 answer | 0

Question

how to classify dataset based on multiple criterion?

i wanna classify dataset based on multiple criterion. nested if else statements will get me the results but i would like use mor...

4 years ago | 1 answer | 0

Question

how can i remove efficiently nan values from columns without deleting the column itself ?

for ex : A = 1 2 3 nan 4 nan nan nan 5 4 5 6 required output A = 1 2 3 4...

4 years ago | 1 answer | 0

Question

how to convert a numeric variable into categorical variable in matlab

i have a normalized numeric vector which ranges between -1 and +1. i want to use this as a response variable in my classificatio...

4 years ago | 1 answer | 0

Question

i was writing a code for mathematical morphology dilation operation for a 1D signal but did not get proper output. Kindly help me with the proper code

the code i wrote: function y_dil=dilation(x,se) L=length(se) x=[zeros(1,L) x]; N=length(x) k=1+L; y_dil=zeros(1,...

4 years ago | 2 answers | 1

Question

How to implement sgolay filter in matlab GUI?

i want to implement Sgolay filter in MATLAB GUI PLZ giude me: i created a GUI with a push button and axes. in the push button...

4 years ago | 0 answers | 0

Question

why does a filter change the amplitude of a signal ?

when i filtered a signal with a cutoff equal to the desired range. i got the signal of desired frequency but the amplitude was a...

4 years ago | 1 answer | 0

Question

How is it possible to remove noise from ECG

in literature i found out that the noises that corrupted ECG are motion artifacts,powerline interference,backgroud muscle noise....

4 years ago | 1 answer | 0