Answered

Red border on some blocks and signals

There could be a possibility that Sample Time Colors information overlay has been enabled for the above model. Additional doc...

Red border on some blocks and signals

There could be a possibility that Sample Time Colors information overlay has been enabled for the above model. Additional doc...

1 year ago | 0

Answered

How to transform multiple sets of coordinates in a csv file into a single shapefile

A possible workaround is as follows % Read the data from the csv file (exclude the header row) data = readcell("test.csv","Num...

How to transform multiple sets of coordinates in a csv file into a single shapefile

A possible workaround is as follows % Read the data from the csv file (exclude the header row) data = readcell("test.csv","Num...

1 year ago | 0

Answered

what formula is used by imadjust command for contrast enhancement

The source code for imadjust can be accessed using type imadjust or edit imadjust %% Do not edit the code

what formula is used by imadjust command for contrast enhancement

The source code for imadjust can be accessed using type imadjust or edit imadjust %% Do not edit the code

1 year ago | 0

| accepted

Answered

How do i binarize these two images to produce an as equal result as possible?

Since Image 2 is a horizontally shifted version of Image 1, a possible workaround could be as follows % Load the images to work...

How do i binarize these two images to produce an as equal result as possible?

Since Image 2 is a horizontally shifted version of Image 1, a possible workaround could be as follows % Load the images to work...

1 year ago | 0

Answered

Applying a lowpass filter to a square wave

For implementing an ideal low pass filter, you can refer to this link

Applying a lowpass filter to a square wave

For implementing an ideal low pass filter, you can refer to this link

1 year ago | 0

Answered

How to use simulink with an external fortran program using its own solver ?

For accessing external FORTRAN code from Simulink, you can refer to this link

How to use simulink with an external fortran program using its own solver ?

For accessing external FORTRAN code from Simulink, you can refer to this link

1 year ago | 0

Answered

Unable to link component

For connecting a physical signal to a Simulink block, PS-Simulink Convertor must be used For connecting a Simulink signal to a ...

Unable to link component

For connecting a physical signal to a Simulink block, PS-Simulink Convertor must be used For connecting a Simulink signal to a ...

1 year ago | 0

Answered

Averaging Intervals on a Graph

If only the starting and ending time stamp need to be selected, the following syntax needs to be used meanTriggBR = zeros(17, 1...

Averaging Intervals on a Graph

If only the starting and ending time stamp need to be selected, the following syntax needs to be used meanTriggBR = zeros(17, 1...

1 year ago | 0

Answered

How to plot the Tsiolkovsky rocket equation for a multi stage rocket

Please refer top this link for reference

How to plot the Tsiolkovsky rocket equation for a multi stage rocket

Please refer top this link for reference

1 year ago | 0

| accepted

Answered

Image analysis of irregular shape of binary image

To analyse the region of interest, Image Segmentation can be done. Image Segmentation tutorial can be found here

Image analysis of irregular shape of binary image

To analyse the region of interest, Image Segmentation can be done. Image Segmentation tutorial can be found here

1 year ago | 0

Answered

double integral and plot of physics function.

A plausible approach would be - Add Line no. 4 till the last line in a function function sigman = BerryCurve(x,y) %% All ...

double integral and plot of physics function.

A plausible approach would be - Add Line no. 4 till the last line in a function function sigman = BerryCurve(x,y) %% All ...

1 year ago | 0

Answered

PLY/ RGB to 2D Grayscale Image

Based on the above code, Image stores the Color Matrix of just the Red channel R, G, B refer to the values of first, second ...

PLY/ RGB to 2D Grayscale Image

Based on the above code, Image stores the Color Matrix of just the Red channel R, G, B refer to the values of first, second ...

1 year ago | 0

Answered

syntax for updating values using webwrite

To make a POST request with request body, send() can be used, with the "Request Body" parameters passed in the body property of ...

syntax for updating values using webwrite

To make a POST request with request body, send() can be used, with the "Request Body" parameters passed in the body property of ...

1 year ago | 1

| accepted

Answered

Determine the extreme values for the function f(x)

To determine the extrema, optimization toolbox can be used . For example %% Finding local minima in [0,4] using fminbnd minima...

Determine the extreme values for the function f(x)

To determine the extrema, optimization toolbox can be used . For example %% Finding local minima in [0,4] using fminbnd minima...

1 year ago | 0

Answered

convert a pixel intensity of gray-scale image to 1D type Signal

The algorithm for converting RGB values to Intensity values is This algorithm converts a n-by-1-by-3 vector into a n-by-1 ve...

convert a pixel intensity of gray-scale image to 1D type Signal

The algorithm for converting RGB values to Intensity values is This algorithm converts a n-by-1-by-3 vector into a n-by-1 ve...

1 year ago | 0

| accepted

Answered

PSF (Motion blur) from the blurred and sharp (or deblurred) image pair.

In frequency domain, PSF can be calculated as fft(blurred)/fft(original). Additional information can be found at this link

PSF (Motion blur) from the blurred and sharp (or deblurred) image pair.

In frequency domain, PSF can be calculated as fft(blurred)/fft(original). Additional information can be found at this link

1 year ago | 0

| accepted

Answered

How can I use symsum function to calculate this equation?

%% Define constants syms n phi lambda; beta_alpha = 1.2*pi; epsilon0 = 1; %% Epsilon when n=0 epsilon = 2; %% Epsilon when...

How can I use symsum function to calculate this equation?

%% Define constants syms n phi lambda; beta_alpha = 1.2*pi; epsilon0 = 1; %% Epsilon when n=0 epsilon = 2; %% Epsilon when...

1 year ago | 0

Answered

How to generate a matrix in simulink

MATLAB function block can be used to generate a matrix from existing parameters. Additional documentaion can be found here

How to generate a matrix in simulink

MATLAB function block can be used to generate a matrix from existing parameters. Additional documentaion can be found here

1 year ago | 0

Answered

Climbing Power Equation: how to make a calculation into usable code

To calculate the first derivative of a particular vector X, the syntax is diff(X,1) For the above equation, Pkm = diff(Pkmt,1...

Climbing Power Equation: how to make a calculation into usable code

To calculate the first derivative of a particular vector X, the syntax is diff(X,1) For the above equation, Pkm = diff(Pkmt,1...

1 year ago | 0

| accepted

Answered

Calculating integration limits of a double integral

For computing the numerical approximation of the above double integral %% Define the major and minor axis of ellipse a = sqrt(...

Calculating integration limits of a double integral

For computing the numerical approximation of the above double integral %% Define the major and minor axis of ellipse a = sqrt(...

1 year ago | 0

Answered

need plotting help with matrix and loops

Minor refactoring of the above code close all clc clf %%Clear the figure window addpath c:\antennas\ewa; l=.68; a=(.00002...

need plotting help with matrix and loops

Minor refactoring of the above code close all clc clf %%Clear the figure window addpath c:\antennas\ewa; l=.68; a=(.00002...

1 year ago | 1

Answered

How to represent a complex function in modulo

Intuitively speaking, at line no. 9 stems(abs(c)); is 0 everywhere except at = 0 . = inf . = for all values of Hence a...

How to represent a complex function in modulo

Intuitively speaking, at line no. 9 stems(abs(c)); is 0 everywhere except at = 0 . = inf . = for all values of Hence a...

1 year ago | 0

Answered

x(t)=log(8)[t+Π(t)], t=[1e-4, 10]

% Vector to define t t = [1e-4:0.001:10]; % product of all time instances prod_t = prod(t); % x(t) x = log(8)*(t+prod_t...

x(t)=log(8)[t+Π(t)], t=[1e-4, 10]

% Vector to define t t = [1e-4:0.001:10]; % product of all time instances prod_t = prod(t); % x(t) x = log(8)*(t+prod_t...

1 year ago | 0

| accepted

Answered

Loading a MAT file gives "Cannot read file", yet sucessfuly loads data into memory.

There could be a possibility of the file being corrupted. For further analysis, you can use the MATCAT tool , which is available...

Loading a MAT file gives "Cannot read file", yet sucessfuly loads data into memory.

There could be a possibility of the file being corrupted. For further analysis, you can use the MATCAT tool , which is available...

1 year ago | 0

Answered

Using python function in matlab

The closing ) is missing in the above code. The correct code would be img, background = py.cv2_rolling_ball.subtract_background...

Using python function in matlab

The closing ) is missing in the above code. The correct code would be img, background = py.cv2_rolling_ball.subtract_background...

1 year ago | 0

Answered

Curve variation and point detection

%% Location of first peak [pk1,loc1] = findpeaks(Signal, 'MinPeakHeight',0.15) %% Location of second peak subSignal = Signa...

Curve variation and point detection

%% Location of first peak [pk1,loc1] = findpeaks(Signal, 'MinPeakHeight',0.15) %% Location of second peak subSignal = Signa...

1 year ago | 0

| accepted

Answered

Why does webread() fail to find my host?

webread() might not be able to process the CSV file, directed by the URL. A possible workaround could be D = webread(url, 'tabl...

Why does webread() fail to find my host?

webread() might not be able to process the CSV file, directed by the URL. A possible workaround could be D = webread(url, 'tabl...

1 year ago | 1

Answered

How to find the gray level of local maxima in an image histogram?

To find the local maxima for the given histogram, FPEAK can be used.

How to find the gray level of local maxima in an image histogram?

To find the local maxima for the given histogram, FPEAK can be used.

1 year ago | 0

| accepted