MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
Find values of vector that fall within multiple ranges
Nicholas - 2020-12-04

Hello, I'm somewhat new to MATLAB, and impressed with how many features it has available. But I'm now stuck and couldn't find a code sample that worke...

How to read specific parts of file and then write it to a text file?
Sophia - 2020-12-04

I try understanding regexp function. I want you to guide me for next step. Because I got stuck. I would like to read specific parts of a file as patte...

find missing element between two matrix
Khloe - 2020-12-03

I have    A=[1 2; 3 6; 3 5; 1 4; 4 6; 2 7; 1 6; 6 5; 2 3; 6 7; 3 4]; B=[1 2; 1 6; 2 3; 3 4; 4 6];,/pre? I want to find missing element between A and...

How do you order table columns based on a vector with their names?
Lucille - 2020-12-03

I have a table, "patients", with 5 columns. I would like these columns to follow the pattern determined by the cell, "order". How could I do this? Rep...

How can I change the axis limit when I have 2 axes in my figure?
Brianna - 2020-12-03

I have a figure with 2 axes: >> figure >> yyaxis left >> plot(1:10); >> yyaxis right >> plot(2:2:20); How can I change the y-limit of my left axis to ...

How do I apply a sample time to an array of values that represent data points at different times?
Saanvi - 2020-12-03

I have a table/array/matrix of values in the MATLAB workspace, representing data from sensors, each arranged in a column. The columns have different s...

How can I use the FINDPEAKS function in the Signal Processing Toolbox 6.8 (R2007b) to find flat peaks?
Vicente - 2020-12-03

The FINDPEAKS function does not consider peak points to be valid unless they are strictly greater than the immediately neighboring points. Reproductio...

Why does the SGOLAYFILT function not accept zeros as elements of the weighting vector w, in Signal Processing Toolbox 6.1 (R13+)?
henryjames012 - 2020-12-03

I am looking at the Savitzky-Golay (SGOLAY) filters to try and remove anomalous spikes from experimental data. To do so, I need to ignore the anomalou...

signalDatastore absent from Matlab 2019b
Oliviawilliams02 - 2020-12-02

Using the Signal Processing Toolbox in Matlab 2019b I don't have access to the signalDatastore function...

how to convert digital data into analog data using matlab code?
Elizabeth - 2020-12-02

how to convert digital data into analog data using matlab code? and vice versa... i.e., converting back analog data into digital data?  ...

Get a Free Consultation or a Sample Assignment Review!