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

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

3 days ago | 0

Answered

Run Matlab code in

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

Run Matlab code in

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

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

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

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

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

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

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

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

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

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

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 days ago | 0

Answered

Constrained optimization of a vector

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

Constrained optimization of a vector

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

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

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

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

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

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

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

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

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 days ago | 0

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

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

5 days ago | 0

Answered

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

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

5 days ago | 0

Answered

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

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

5 days ago | 0

| accepted

Answered

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

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

5 days ago | 0

| accepted

Answered

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

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

5 days ago | 0

| accepted

Answered

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

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

5 days ago | 0

Answered

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

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

5 days ago | 0

Answered

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

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

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

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

5 days ago | 0

Answered

How do i generate a user-defined function that computes Taylor series implementation of e*

The derivative of exp(x) is exp(x) so you do not need to any real work for the derivative parts. You just have to work with the ...

How do i generate a user-defined function that computes Taylor series implementation of e*

The derivative of exp(x) is exp(x) so you do not need to any real work for the derivative parts. You just have to work with the ...

5 days ago | 0

| accepted

Answered

I tried to do Monte Carlo simulation in MATLAB, but it cannot be run! Can anyone help me?

You define a function but do not invoke the function. The function does not have access to any of the variables you define be...

I tried to do Monte Carlo simulation in MATLAB, but it cannot be run! Can anyone help me?

You define a function but do not invoke the function. The function does not have access to any of the variables you define be...

5 days ago | 0

Answered

I tried to show effect of uncertain parameters on bi-variate function with color map and aslo highlight changes to max and min,I am not sure the function I wrote is right!!!

y=lhsnorm(50,10,10,"on"); [xmin,fval]=fminsearch(@(x)Z(x,y),x0,options) %min The y referred to there is being "captured" fr...

I tried to show effect of uncertain parameters on bi-variate function with color map and aslo highlight changes to max and min,I am not sure the function I wrote is right!!!

y=lhsnorm(50,10,10,"on"); [xmin,fval]=fminsearch(@(x)Z(x,y),x0,options) %min The y referred to there is being "captured" fr...

6 days ago | 0

| accepted

Answered

synonyms functions for uigetfile or uiopen

You can use uigetfile() with 'multiselect', 'on' . The first output of uigetfile() will be numeric if the user cancelled. The...

synonyms functions for uigetfile or uiopen

You can use uigetfile() with 'multiselect', 'on' . The first output of uigetfile() will be numeric if the user cancelled. The...

6 days ago | 0

| accepted