MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 172 of 208 Ask a Question
fsolve in codegen returns indexing error
Nicholas · Dec 7, 2020 · matlab , matrix , simulink , indexing error

I am struggling with the code generation of a function containing the fsolve command (supported since R2020b). Since it is a rather new topic, I did not find any related entries. T…

Mex building from C++ DLL
Jasmin · Dec 7, 2020 · matlab , C++ DLL , MEX function ,

I have a C++ DLL and its header file. I'm trying to build a MEX function for each function in the DLL, and one of the functions has the following signature:   % // This is from th…

Error due to variable size data in Matlab function block
Wyatt · Dec 7, 2020 · matlab , matlabsolutions , matlab coder

I have a problem that many others had before, so I read some discussions and references before asking the following: I have a Matlab function block in Simulink, which would like to…

Coder varsize unbounded second dimension
Zayden · Dec 7, 2020 · matlab , matrix , matlab code ,

I am reading on the Matlab help  about coder.varsize. In particular, I read that Declare Variable-Size Array with a Mix of Fixed and Variable Dimensions Specify that A is an array…

What do I need to add to my code when using loglog to plot?
camillajoy · Dec 5, 2020 · matlab , signal , signal processing , plot ,

I have used semilogx and semilogy to plot the attached audio signal but never loglog. I keep getting an error returned to me about the input arguments but am unsure on what to add …

How to use findpeaks in the frequency domain?
Leonardo · Dec 5, 2020 · matlab , signal , signal processing

I'm able to use findpeaks to find out the amplitude and time of each mode but i'm trying to use it to also find frequency, below was my attempt however as I am still very new to th…

Convert spectrogram time to UTC
Vicente · Dec 5, 2020 · matlab , signal , signal processing

I have produced a spectrogram of a signal, starting at 18:33:01 UTC on 6th July 2013. I need the time to be in UTC rather than time instants; does anybody know how to convert this?…

Index error when calling filter function
Sophia · Dec 5, 2020 · matlab , signal , signal processing

I'm trying to write a function to read an audiofile applying it a filter. I first use audioread function that gives me my (441000x2) signal matrix of n samples in 2 channels/column…

Get a Free Consultation or a Sample Assignment Review!