# Star Strider

Hic sunt dracones!

PROFESSIONAL: Physician (M.D.): Diplomate of the American Board of Internal Medicine; M.Sc. Biomedical Engineering: Instrumentation, Signal Processing, Control, System Identification, Parameter Estimation

NON-PROFESSIONAL: Amateur Extra Class Amateur Radio Operator; Private Pilot, Airplane Single Engine Land, Instrument Rating Airplane; Gamer

NOTE: I do not respond to emails or personal messages, unless they are about my File Exchange contributions.

**Statistics**

RANK**3**

of 242,623

REPUTATION**51,592**

CONTRIBUTIONS

**0** Questions

**16,448** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**7,022**

RANK**2,693** of 16,974

REPUTATION**548**

AVERAGE RATING**4.70**

CONTRIBUTIONS**5** Files

DOWNLOADS **34**

ALL TIME DOWNLOADS**5108**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Problem in Designing Linear Phase (Zero Phase) FIR Filter!

I do not see that you are doing anything wrong. However I made some changes that might improve things — lpf1 = designfilt('...

18 hours ago | 1

| accepted

How to plot binary matrix as dots?

Try this — M = randi([0 1],25)>0; % Logical Matrix [r,c] = find(M); figure scatter...

20 hours ago | 0

Time Series Partitioning of EMG data

Another approach, using the Signal Processing Toolbox buffer function — EMG = randn(4E+4,1) ...

21 hours ago | 0

Error using lsqcurvefit (line 271) Function value and YDATA sizes are not equal.

The ‘Lp_Ps_Vb’ function is going to return ‘X’ that is going to be a (numel(t) x 2) matrix, so lsqcurvefit needs to have a match...

22 hours ago | 0

Drawing a line to divide two parts of a curve

Try this — x = linspace(0, 20); y = (1-exp(-0.1*x)); xq = 10; yq = interp1(x,y,xq) figure plot(x, y) hold on plot([1 ...

23 hours ago | 0

| accepted

find a value between two points

Use interp1 or fzero on a monotonically-increasing (or decreasing) curve such as that. Example — x = linspace(0, 50); y = ...

1 day ago | 0

| accepted

How do I fit the Gaussian distribution?

It gave a much better result when I ran it (R2021a) — LD = load('noise_filt.mat'); noise_filt = LD.noise_filt; figure hhf...

1 day ago | 0

| accepted

error in axis! help me

In this axis call: axis([0 bp*length(demodulated_data) -0.5 1.5]) there was originally an extra 0 just after the length call,...

1 day ago | 1

| accepted

How do I plot an equation?

One possibility — syms x y=exp(-x/0.005) fplot(y, [0 1/20]) grid .

2 days ago | 0

Reconstruct signal using ISTFT after cutting off frequecies

Set the amplitude values at those frequencies to 0 rather than eliminating them from the vector. .

2 days ago | 0

| accepted

Reading multiple files in multiple loops

The separate ‘g’ loop is not necessary, since it can be created either using a counter or by calculating it. See if this does...

2 days ago | 0

| accepted

Error while integrating bessel functions

The problem is: Q = @(s) 2*(1 - (nu.^2))./(s.*E).*(1./(a(s) + b(s))); ↑ ↑ ← HER...

2 days ago | 0

| accepted

EEMD(ensemble EMD)

I am not absolutely certain what the problem is, because ‘does not work’ can mean just about anything. Note that according to...

2 days ago | 0

conditioning array with complex number

This can probably be combined into fewer actual lines. I kept them separate to demonstrate the approach — A = complex(rand(...

2 days ago | 0

| accepted

frequency of letters in English message

One approach — plain= 'my name is samah samir and i am engineer'; ltrs = double(plain); ltrs = ltrs(ltrs>32)-double('a')+1; ...

3 days ago | 0

| accepted

Change "matrix" to a scalar

If you want to square the elements of ‘var’ use element-wise exponentiation (the ‘dot operator’). var=var*(1-(1/(i-1)))+i*(sum1...

3 days ago | 0

How to set scale range for a contour?

The x-axis goes from 1 to 2 because the contour plot is of a (117x2) matrix. That also explains the range of the y-axis. d...

3 days ago | 0

| accepted

How to make constant to 1 in power function in curve fitting toolbox

Use fminsearch rather than linearised polyfit for this. x1=[6.71214E-05 0.00112676 0.047319082 0.142706219 0.273947664 0.4...

3 days ago | 1

| accepted

How to use create table name variables in loop?

I am not certain that I understand what you want to do. Perhaps — randomdata = randn(33,10); NrCellArrays = fix(size(rando...

4 days ago | 0

| accepted

How to code and build a smaller array and 2D-plot charged particles to make clusters (as they are linked via indices) using charge, no of lone pair of electrons & bond order?

I am not certain what you want. I have no idea what ‘collecting the indices’ implies. Try this — T1 = readtable('https://w...

4 days ago | 0

How can I plot an histogram?

Try something like this — number_of_events=[30.60, 32.30, 32.30, 32.30, 32.30, 2.60, 12.60, 32.30, 32.30, 9.70, 25, 13.20, 1...

4 days ago | 0

| accepted

What equivalent MATLAB commands plots PDF of data like 'hist' command plots histogram of data.

See if the histfit function does what you want. .

4 days ago | 0

| accepted

How can I make MATLAB shade the area of the virtual intersection between two lines?

Both fill and patch require a closed region — x1 = ones(1,10); y1 = ones(1,1000000); n1 = 10^10:10000000000:10^16; T1 = 10:...

4 days ago | 1

| accepted

stop execution of code to check results

I would just display it instead — if i == 100000 fprintf('Parameter = %f at iteration %d\n', Parameter, i) end Also...

5 days ago | 0

| accepted

simulate free fall project, ode45, using reynolds no to get drag coefficient, recursive problem

The NaN values are the result of 0/0 operations, and when that occurs in the first integration, it propagates through all of the...

5 days ago | 0

| accepted

Default varm function not working

The function is part of the Econometrics Toolbox, so to use it, the Toolbox must be licensed and installed. If it is already ...

5 days ago | 0

"Too many output arguments" error while working with the fmincon solver inside the optimization tool.

The ‘objectiveFncn’ function is not written correctly. From the documentation, it should be ‘a function that accepts a vector o...

5 days ago | 0

How can I plot single points, each having a different color, of two arrays(as x, and y) using a for loop?

See the documentation on scatter to see all its optional arguments and features. x = rand(12,1); y = rand(12,1); figure...

5 days ago | 0

How can I extend the data in the x direction.

Try this — y5000 = feval(f, 5000) I cannot run the posted code (no data) so I am posting this as UNTESTED CODE. It shoul...

5 days ago | 0

| accepted

how to store array

Try something like this — xv=1:5; for k = 1:numel(xv) x = xv(k); A=[5*x 0;2*x^2 1]; B=[0;2.55]; Y(:,x)=...

5 days ago | 0

| accepted