Answered
PLotting Fibonacci Ratios against phi
Refactored version of your code % Ratio comparer% Phi = ((1 + sqrt(5))/2); GR = 1; i = 1; error =abs(Phi-GR) % Initialize t...

3 years ago | 0

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

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

3 years 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

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

3 years ago | 0

Answered
Applying a lowpass filter to a square wave
For implementing an ideal low pass filter, you can refer to this link

3 years 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

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

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

3 years ago | 0

Answered
How to plot the Tsiolkovsky rocket equation for a multi stage rocket
Please refer top this link for reference

3 years 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

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

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

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

3 years ago | 1

| accepted

Answered
无法检索产品 CAN NOT RETRIEVE PRODUCT
Please refer to this link

3 years ago | 0

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

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

3 years 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

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

3 years 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

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

3 years 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(...

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

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

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

3 years ago | 0

| accepted

Answered
Reading .gz file
For unzipping a .gz file, gunzip function can be used

3 years ago | 0

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

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

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

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

3 years ago | 1

Load more