# Walter Roberson

I do not do free private consulting. If you want to bring my attention to something, send a link to the MATLAB Answers location. I am currently caught up to T0099119; if you are waiting on a reply from me for an older issue, please send me a reminder.

**Programming Languages:**

C, MATLAB, Shell, Perl, Fortran

**Spoken Languages:**

English

**Statistics**

RANK**1**

of 258 093

REPUTATION**122 347**

CONTRIBUTIONS

**34** Questions

**54 845** Answers

ANSWER ACCEPTANCE **
52.94%
**

VOTES RECEIVED**15 917**

RANK

of 17 785

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

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...

44 minutes ago | 0

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...

environ une heure ago | 0

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...

environ 2 heures ago | 0

How to perform the following commands?

temp = abs(result1(1,:)); temp(temp==0) = nan; [~, idx] = min(temp) ;

environ 3 heures ago | 0

| accepted

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 ...

environ 5 heures ago | 0

Run Matlab code in

https://www.mathworks.com/help/supportpkg/raspberrypiio/run-on-hardware.html

environ 5 heures ago | 0

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)...

environ 5 heures ago | 0

| accepted

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 ...

environ 6 heures ago | 0

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...

environ 8 heures ago | 0

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...

environ 9 heures ago | 0

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...

environ 9 heures ago | 0

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...

environ 10 heures ago | 0

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...

environ 11 heures ago | 0

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...

environ 11 heures ago | 0

Constrained optimization of a vector

Use fmincon. Make the objective f1^2 and use a nonlinear equality constraint with f2.

environ 14 heures ago | 0

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...

environ 19 heures ago | 0

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...

environ 19 heures ago | 0

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 ver...

environ 20 heures ago | 0

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...

environ 20 heures ago | 0

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...

1 jour ago | 0

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...

1 jour ago | 0

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);

1 jour ago | 0

Hello, I need a code that gets the local minimum of a histogram by using for loops.

Initialize to index 1. Initialize to "potentially in a local minima" If you are potentially in a local minima, check to see if...

1 jour ago | 0

Fitting data with custom equation and custom interval

The fundamental problem is that you have an expression raised to a negative power, and if that expression can ever be 0, that gi...

1 jour ago | 0

| accepted

i have error in this code while using ode45

[250 :0 350] Your vector of initial conditions only has one entry. Your line of code will not be interpreted as [250, :0, 35...

1 jour ago | 0

Trying to code from Polymath

Use the symbolic toolbox. Move all of the initializations of constants first. Then syms cc cp ca co and convert each of thos...

1 jour ago | 0

| accepted

Write in an opened excel file using MATLAB

You can put together the reading logic from https://www.mathworks.com/matlabcentral/fileexchange/22365-function-for-faster-data-...

1 jour ago | 0

How to write code for flowchart

period = 40e-6; for REPEATS = 1 : 500 %box 1, 40 microsecond interrupt last_event_time = tic; while toc(last_...

1 jour ago | 0

Error using freqz, 6 columns needed to be a valid SOS matrix

Your recording of your friend is probably stereo. Your code assumes mono.

1 jour ago | 0