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 170 of 208 Ask a Question
First argument must be a vector.; Function call failed.
raztiwaripersonal · Dec 14, 2020 · matlab , ,matlab coder ,

I am trying to conver a function to C using coder. I am using inbuilt function 'filtfilt'. Function executes properly but when i try to convert it to C i get following errors: 1.Fu…

Why does the code generated for 'ismember' function
frinchflips · Dec 14, 2020 · matlab , ,matlab coder , C equivalent

Why does the code generated for 'ismember' function contain a variable 'absxk' with value "1.4013E-45F" ? The code generated for 'ismember' function contains an assignment of value…

USING MEX TO SPEED UP THE CODE
remshwer · Dec 14, 2020 · matlab , ,matlab coder , C equivalent

I have a matlab code which is computationally intensive and takes more than affordable time to run. I am told mex can be of help. So I have tried converting the code into its C equ…

Error while plotting matrix of complex numbers
Ralph · Dec 14, 2020 · matlab , matlab coder ,

clc clear all sub=[ -1.1691 + 113.64i; -9.0587 + 137.23i; -10.221 + 166.23i; -9.6819 + 197.8i; -8.5346 + 233.76i; -1.1691 - 113.64i; -9.0587 - 137.23i; -10.221 - 166.23i; -9.6819 -…

Call M File In SIMULINK Model
tesem · Dec 12, 2020 · matlab , ,matlab coder , simulations

I want to call M File In SIMULINK Model.  I take one x constant , One Matlab Fnc , Matlab Fnc Output to display . I want to x value as input in M file function and their output di…

Error in PIL testing using Arduino
olive · Dec 12, 2020 · matlab , ,matlab coder , simulations

I am trying to run PIL simulation of a subsystem on an Arduino Uno board. I have created the PIL block but on running the simulation, I get the following error:   Data type "doubl…

Fmincon code generation with C++ objective
Timothy · Dec 12, 2020 · matlab, ann , matlab coder

I try to generate a mex file for fmincon in combination with an objective in c++. My objective looks like:   #include #include #include "obj.h" double obj(double x) { return x*x; …

Get a Free Consultation or a Sample Assignment Review!