# 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. Time Zone: UTC-7 (Standard); UTC-6 (Daylight Savings/Summer)

**Statistics**

RANK**3**

of 271,394

REPUTATION**60,034**

CONTRIBUTIONS

**0** Questions

**18,562** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**8,319**

RANK**2,619** of 18,300

REPUTATION**598**

AVERAGE RATING**4.70**

CONTRIBUTIONS**5** Files

DOWNLOADS **29**

ALL TIME DOWNLOADS**5602**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

overwrite figure(2) on figure(1)

I am not certain what you are asking. Consider using the hold function to plot two figures on the same axes — syms x f = si...

17 hours ago | 0

Plot graph using dots and colormap to show the frequency

It is ceretainly possible to scale any of the axes logarithmically, providing that none of the plotted values or axes values are...

18 hours ago | 0

retime Linear or next

Try something like this — Time = datetime('now')+hours(0:2).'; Temperature = 10*randn(size(Time)); T2 = table(Time,Temperatu...

21 hours ago | 0

I have a raw eeg data and i want to plot the alpha wave(8-12Hz) of this data in the same window . How can i do? please help me

Design a bandpass filter (using bandpass or other appropriate function), filter the signal, and plot it — Fs = 1000; L = 1E+...

22 hours ago | 1

| accepted

Why do I get "Array indices must be positive integers or logical values" error when using "angle" function?

You have a variable named ‘angle’ somewhere in your workspace. If you run: which angle -all the results should be similar to...

22 hours ago | 0

Finding similar elements in a single matrix

One approach using accumarray — x = [2 0 0 3 3 0 4 4 0 5 5 5 6 6 6]; [Aunique,~,idx] = unique(x(:))...

1 day ago | 0

| accepted

How to Stop FOR loop when "answer" is reached, and display answer?

See the documentation on the break function.

1 day ago | 0

Excel column informtion input

I would use readtable to read the file, then addvars to add one or more variables in the desired position, then writetable to wr...

1 day ago | 0

Genetic Algorithm not returning best found solution

I do not entirely understand what your ‘obj_fun’ fitness function optimises, however expecting ga to optimise 37 parameters in 2...

1 day ago | 0

how to read .txt file having the following format.

Use the readcell function — C1 = readcell('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1214888/example.txt'...

2 days ago | 0

how to save anovan figure as a .fig?

It is likely not possible to save the image, however anovan creates a table with the same information if you request it, and it ...

2 days ago | 0

| accepted

how to plot 3D figure like this?

Try something like this — Fs = 250; L = 100; f = 1.26; t = linspace(0, L-1, L)/Fs; s = sin([0 (1:2:20)].'*2*pi*t*f)./[1 (1...

3 days ago | 0

Representing samples on analog signal according to the sample period (MATLAB)

The easiest way to create the time vector is: t = linspace(0, L-1, L)/Fe; Example — LD = load('handel.mat'); y = LD.y; F...

3 days ago | 0

Plot Day of Year with Time

Try something like this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1213723/Data_2.csv') ...

3 days ago | 0

defining state matrix as anonymous function

Referring to your other post: ode45 is running an infinite loop (it isn’t actually, since switching from ode45 to ode15s solves ...

3 days ago | 0

How to make a line of fixed length?

It is relatively straightforward to write an anonymous function for this — createLine = @(startpt, slope, len) [startpt(1) sta...

4 days ago | 0

| accepted

How to find and fit the objective function for a damped oscillation?

Using fminsearch — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1211598/F300.xlsx') x = T1....

4 days ago | 1

| accepted

Getting "Arrays have incompatible sizes for this operation." on this exercise

The ‘z’ assignment fails because the arrays used to calculate it are empty, likely because the first 50 elements of ‘n’ are less...

5 days ago | 0

| accepted

Unrecognized function or variable 'wgs2utm'

Search the File Exchange for wgs2utm.

5 days ago | 0

| accepted

Can I find likelihood function of an objective function?

If you have the Statistics and Machine Learning Toolbox, see if the mle function (and associated functions) will do what you wan...

5 days ago | 0

How to make contour plot of two matrices in MATLAB?

‘Data files both are matrices with 1 row and 55 columns, which represent 55 points.’ They are vectors by definition, and it i...

6 days ago | 1

| accepted

Broad confidence bound range when fitting in Matlab

The important thing to note here is that the confidence intervals for ‘n’, ‘L’ and ‘A’ include zero (have opposite signs) and ...

6 days ago | 1

add transparency to a contourf

You have to use the handle to the contourf plot to set the transparency — [X,Y,Z] = peaks(50); figure contourf(X, Y, Z) ...

6 days ago | 0

| accepted

How to find the frequency of a morse code (sinusoidal signal) mixed with an audio music signal from a .wav file?

Start with the pspectrum function to analyse the signal, using the 'spectrogram' option, or just use fft, although if the Morse ...

6 days ago | 0

how to make an audio

I would use a Gaussian for the envelope function, similar to: envfcn = @(ct,sf,t) exp(-(t-ct).^2*sf); where ‘t’ is the time v...

7 days ago | 0

Need to print the output to newline while creating a table

In the loop, subscript the different assignments, for example: Var1(j,:) = type(j); Var2(j,:) = dx(j); and so for the rest. ...

7 days ago | 1

| accepted

Converting Y-axis values to the base of 10

This can be done easily using ytickformat (introduced in R2016b) — x = linspace(0, 2.5); y = 6*exp(-1.5*x) - 6; figure pl...

7 days ago | 0

How to get contour plot of multiple Datas in the same plot?

I did something like this recently in Contourf plot of magnitude of transferfunction along trajectory. See if you can adapt tha...

7 days ago | 0

Index in position 2 exceeds array bounds. Index must not exceed 2?

See my Comment to your earlier Question.

8 days ago | 0

Unrecognized function or variable 'lof'.

The lof function was introduced in R2022b. You will need to upgrade to the latest release to use it. (The onine documentatio...

8 days ago | 0

| accepted