Answered
Check for missing argument or incorrect argument data type in call to function 'int'.
P = inf(size(f)); P(f==0) = 0; You are integrating a vector of non-negative real constants from 0 to infinity. The integ...

4 years ago | 0

Answered
Error using sym/subs>normalize (line 226) Inconsistency between sizes of second and third arguments.
Jg = subs(J, {lambda theta}, xout); %Jacobian When you use {} around the list of values to replace, then the third parame...

4 years ago | 0

| accepted

Answered
How to remove an unwanted file in dataset for example : ".DS_Store"
Specify the file extensions to import. That file will not match the extensions. Also if you use a wildcard to specify the fil...

4 years ago | 0

Answered
explanation of the matlab code
Equivalent code: rentedforVector(count, 1:9) = decision == (0:8); With no for loop. If decision is 0 then the first c...

4 years ago | 0

| accepted

Answered
Create legend based on a if loop statement
you are doing a separate scatter3 for each point. Each of those will result in a new plot object. Your legend call with three la...

4 years ago | 1

| accepted

Answered
Dynamically Creating Variable Alternatives
parfor sliceno=1:size(Data, 3) slice = Data(:, :, sliceno); change slice Data(:, :, sliceno) = slice; end

4 years ago | 1

| accepted

Answered
Not enough input arguments
You have a function named movie_kernel that expects to be passed one or more parameters, including a parameter it refers to as X...

4 years ago | 0

| accepted

Answered
Ode23 error using odearguments
I0=subs ( I0 , ' 3.14 ' , pi ) ; After that add IO = double(IO);

4 years ago | 1

| accepted

Answered
Is it possible to have an .exe file which works as a function with inputs and outputs inside MATLAB environment, like a c++ .exe or a MATLAB app?
You could use .Net System.Diagnostics.Process to start a process and do i/o redirection of input and output. Most commonly somet...

4 years ago | 0

Answered
How to plot digital sequence in MATLAB
If you are certain that all of your values are finite, then you can replace u[n] by (n>=0) If you have negative infinite valu...

4 years ago | 0

Answered
How do I find the nature of turning points using this function?
values that are exactly the same are derivative 0. Once you find a value not equal to the first value, then any string of increa...

4 years ago | 0

Answered
How to perform the following commands?
temp = abs(result1(1,:)); temp(temp==0) = nan; [~, idx] = min(temp) ;

4 years ago | 0

| accepted

Answered
Voltage dips on matlab
square() is -1 to +1. you multiply by 0.7 and add 0.3 so you get a range of -0.4 to +1. You multiply your signal by that, but ...

4 years ago | 0

| accepted

Answered
Run Matlab code in
https://www.mathworks.com/help/supportpkg/raspberrypiio/run-on-hardware.html

4 years ago | 0

| accepted

Answered
fit scatter plot to a curve
x = [0,0.1, 0.2, 0.3, 0.4, 0.46, 0.55, 0.6]; y =[0, 0.0982, 0.1359, 0.126, 0.0778, 0.0827, 0.063, 0.0599]; f= polyfit(x,y,7)...

4 years ago | 0

| accepted

Answered
help im getting this error
zerocross(F, ukuran, sigma) at the time you invoked zerocross with that line, you had not defined ukuran. Possibly you had ...

4 years ago | 0

Answered
Understand a part of code Detection CFAR
switch upper(technical) case 'AC' is like if isequal(upper(technical), 'AC') and the next case would be "else...

4 years ago | 0

Answered
How to extract data from another aplication ?
Unless the app provides a better solution, you will need to ask to capture the screen in that area, and then do Optical Characte...

4 years ago | 0

Answered
How can I loop for Exponential Decay?
c=c_0*exp(-k(3)*t); if t increases by 1 then the next value is exp(-k(3)) times the previous one. So in loop form, for each...

4 years ago | 0

Answered
how to store pixel location and color from impixelinfo
What you describe is more Data Cursor http://matlab.izmiran.ru/help/techdoc/creating_plots/data_ex7.html impixelinfo is more...

4 years ago | 0

Answered
Is there is any alternative for evalclusters (Evaluate clustering solutions)
Yes, for kmeans, the optimal number of clusters is always size(unique(Data, 'rows'), 1) That is, the optimal number of c...

4 years ago | 0

Answered
How to do the computation using fuzzy logic
The output shown is incorrect. The cup symbol means set union and the upside down cup means set intersection. Almost all of thos...

4 years ago | 0

Answered
Constrained optimization of a vector
Use fmincon. Make the objective f1^2 and use a nonlinear equality constraint with f2.

4 years ago | 0

| accepted

Answered
how can i solve Error in gui_mainfcn
You previously crashed during execution so STOP_Callback did not get executed so "clear all" did not get executed. You need to m...

4 years ago | 0

Answered
Change in behavior of filtfilt function between 2016b and 2019b?
Yes. By R2020a x is explicitly documented as having to be finite valued. The code test was added in a previous release, but t...

4 years ago | 0

Answered
Using CPLEX with MATLAB newest version
https://groups.google.com/g/cobra-toolbox/c/kP38fqFQQ4k IBM no longer supports cplex for MATLAB, so you are restricted to vers...

4 years ago | 1

| accepted

Answered
Vectorization of for loops with symbolic functions inside
Yes, you can vectorize the code completely by just assigning 0 and 0 as the solutions. You construct eq3 as the sum of two sc...

4 years ago | 0

| accepted

Answered
how to make a polygon with direction of points?
You can create a transformation matrix. I recommend using makehgtform() . Transforms for it are applied right (last) to left (fi...

4 years ago | 0

| accepted

Answered
use ga optimization but got error for ga process
syms x [1 2] x1=x(1); x2=x(2); y=(4*x1.^2)-2.1*x1.^4+1/3*x1.^6+(x1*x2)-4*x2.^2+4*x2.^4; c=-sin(4*pi*x1)+2*sin(2*pi*x2)^2...

4 years ago | 0

| accepted

Answered
Create an input array from -1*pi to 1*pi
% Create an input array from -1*pi to 1*pi t=-pi:pi; % Calculate |sin(t)| x=abs(sin(t)); %plot result plot(t,x);

4 years ago | 0

Load more