Community Profile # Star Strider

Last seen: Today Actif depuis 2012

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

All
• • • • • • • • • • • • #### Content Feed

Afficher par

A répondu
Computer specific fsolve error
It runs without error here — n = 4; l = linspace(0,150,10000); % approx the roots x0 = [0,3,37,23.15,62.67]; fun = @(l...

environ 6 heures il y a | 0

A répondu
How to locate X value for a given Y value
In the absence of the data, getting an independent variable valuex ‘x’ from an dependent variable value ‘y’ is relatively straig...

environ 20 heures il y a | 0

A répondu
How do I make a bar graph from uneven arrays without adding zeros to the end of the smaller array?
I am not certain what you want. This approach creates a NaN matrix with the column length of the larger vector, writes the or...

environ 23 heures il y a | 0

| A accepté

A répondu
Convenient way to filter sinusoidal noise from decay data?
If you want to use a frequency-selective filter, first do a fft of the data to determine the frequency components, then use the ...

2 jours il y a | 0

A répondu
How to read Brimrose NIR spectral data
I have no idea what is supposed to be in that file. It appears to be a binary file, so experiment with the fread function. A...

2 jours il y a | 0

A répondu
How can I get a smooth curve in MATLAB?
One option is to interpolate to a finer ‘x’ vecttor, and then use a method such as 'pchip', 'spline', 'makima', or others to do ...

2 jours il y a | 0

| A accepté

A répondu
How to integrate a lognormal pdf
The ‘ero’ data are missing. Consider the appropriate cdf function.

2 jours il y a | 0

A répondu
We do not have your data. The fliplr function will not produce the desired result with column data. I prefer to use the patc...

2 jours il y a | 0

A répondu
How to use the data from a .mat file to make a graphic?
Use the load function to ‘read’ the .mat file. (I always load into a variable as a structure of the .mat file contents so that ...

3 jours il y a | 0

| A accepté

A répondu
A way to write "if x is in y matrix do this"
It depends what the random number is, and how you define ‘y’ . The ismember function works for exact comparisons. The ismember...

3 jours il y a | 0

| A accepté

A répondu
How can I delete a specific row from a timetable?

3 jours il y a | 1

| A accepté

A répondu
How to transform a second order ODE to the format xddot=A.X+B.U
See if using odeToVectorField and matlabFunction will do what you want. Those should work if you want to solve them using the...

3 jours il y a | 0

A répondu
Convert uint8 vector to float
Since you apparently know the mapping, one option is to simply calculate a linear regression (assuming that a linear relation ex...

3 jours il y a | 1

A répondu
How do I plot horizontal time intervals and ignore others to produce a non continous dashed line plot?
Try this — tTime =[0.0547083333333333 0.0553541666666667 0.0587500000000000 0.0599375000000000 0.0632291666666667 0.0646458333...

3 jours il y a | 0

| A accepté

A répondu
How to change a single xtick (x label)?
Perhaps something like this — x = 1:100; y = rand (100); figure plot(x,y) xt = xticks; xticklabels([{'No Stim'} compose...

3 jours il y a | 0

| A accepté

A répondu
find a tangent values from plot
I am not certain what tangent (slope) you want. I am assuming it is from (0,0) to where the tangent line touches each parabols....

4 jours il y a | 0

A répondu
Best way for finding transfer function in time domain
If you want to create a filter from it (returning numerator and denominator coefficient vectors), use the Signal Processing Tool...

4 jours il y a | 0

| A accepté

A répondu
How to define the location/position of a number in a specific cell array?
It would help to have the actual cell array. Try something like this — MY = {[]; []; []; 1; []; []; []} loc = find(cellf...

5 jours il y a | 0

A répondu
How can I plot this X and Y data?

6 jours il y a | 0

| A accepté

A répondu
how to separate a large text file into individual text files based on date, but also export headers?

6 jours il y a | 0

| A accepté

A répondu
Is the window function automatically used when doing the fft function, or do I have to enter code to use the window function?
The fft defaults to a rectangular window that is the length of the signal. That is the only one that is ‘autoomatically’ used. ...

7 jours il y a | 0

A répondu
Creating sounds with changing amplitude
Try this — Fs = 44100; Ft = 440; sec = 2; t = linspace(0, Fs*sec*60-1, Fs*sec*60).'/Fs; % ChkFrq = 1/t(2) s = sin(2*pi*Ft...

7 jours il y a | 0

A répondu
How to interpret results of FFT/DFT?
The time vector needs to be scaled correctly if the frequency vector is to be correct. Try this — T1 = readtable('https://w...

7 jours il y a | 0

| A accepté

A répondu
Plot a graph from arrays
Try something like this — hv = [0,2,4,6,8]; Xm = [ {[54.8765]} {[15.8544]} {[55.3118]} {[19.0629]} {[55....

7 jours il y a | 0

| A accepté

A répondu
Logical operator not evaluating correctly
Only two comparisons are actually required here — X = linspace(-7, 7, 15); Y = -(X < -5) + (X > 5); Check_Result = [X; Y] ...

7 jours il y a | 0

| A accepté

A répondu
add the magnitude ratio and the phase angles data points on bode diagram
I am not certain what you want for the result. The fit is not the best, however the compare function will plot the data and t...

7 jours il y a | 0

A répondu
How to plot a graph correctly?
I am not certain that I understand what you want to do. If you only want the contour at ‘F=0’, supply that as the fourth, ‘Le...

7 jours il y a | 0

A répondu
How do I simplify a function?
You apparently defined some of those variables as arrays previously. To use the simplified function numerically, use the matl...

8 jours il y a | 0

A répondu
How to covert rownames to the first variable in the table?
Try something like this — T1 = array2table(randi(9, 5, 5)); T1.Properties.RowNames = {'1','2','3','4','5'} ...

8 jours il y a | 0

A répondu
How to calculate the derivative of vector
Fro symbolic variables, diff only works with funcitons. To calculate a numeric derivative, try something like this (assuming ...

9 jours il y a | 0