Community Profile

photo

Star Strider


Last seen: Today
13,270 total contributions since 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.

Contact

Star Strider's Badges

  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 3
  • First Submission
  • Grand Master
  • 36 Month Streak
  • Thankful Level 3
  • Revival Level 2
  • Knowledgeable Level 4
  • First Answer
  • Scavenger Finisher
  • Solver

View details...

Contributions in
View by

Answered
Please help me understand the use of dot operator
The dot operator, used with multiplication, division, and exponentiation, creates element-wise oiperations. See Array vs. Matri...

8 hours ago | 1

| accepted

Answered
How to sort the rows of an array according to another vector?
Try this: D=[1 1 0 1 0 1; 4 6 7 8 9 9; 1 1 1 2 3 4]; b=[2 44 0]; [bb,idx] = sort(b,'descend'); Out = D(idx,:) producing: ...

10 hours ago | 0

| accepted

Answered
How to change the values in a matrix
One approach: Before = [ 1 9 9 9 3 8 9 9 9 4 8 9 9 9 ...

10 hours ago | 0

| accepted

Answered
Plot straight lines between the data points in the same colour as the data points with lots of NaN values
I cannot follow everything that code does. However: ConcMatrix = fillmissing(ConcMatrix, 'linear'); seems to do what you w...

16 hours ago | 0

Answered
Inverse of algebraic expression in Matlab
Possibly: rfcn = @(E) fsolve(@(r) 1-1/2*((1+r).*log2(1+r)+(1-r).*log2(1-r)) - E, 10); % Anonymous Function: r(E) N = 200;...

17 hours ago | 0

Answered
Designing an Arbitrary FIR Filter
This is probably as close as you can get: Frequency = [100 125 160 200 250 315 400 500 630 800 1000 1250 1600 200...

20 hours ago | 1

Answered
Plot the Intensity and phase of variation of electric field.
The Fourier transform is easy enough to calculate and plot: t = dlmread('t_spectrum_11480.txt','',1,0); E = dlmread('y_spectr...

21 hours ago | 0

| accepted

Answered
How to fix axes in dynamic plot
Try this: x=@(t)(sin(4*t)).^2; y=@(t)cos(5*t); z=pi; figure(1) for t=0:0.002:z plot(x(t),y(t),'.','MarkerSize',4,'c...

1 day ago | 0

| accepted

Answered
How can plot this curve in matlab ?
This appears to approximate it: k = linspace(0,1); Finesse = 5./k; figure plot(k, Finesse)

1 day ago | 0

| accepted

Answered
Extraction of FFT from each segment for computation
If this relates to your earlier Question, the fft results are in each column of the ’P1’ matrix. Y = fft(X-mean(X)); ...

1 day ago | 0

Answered
How to integrate a data set?
I would use the trapz function, or cumtrapz (linked to in the trapz documentation), depending on the result you want. For exa...

2 days ago | 0

| accepted

Answered
Equations of 3d Curves
If you want to differentiate them using the Symbolic Math Toolbox, start with: syms t x(t) = 5*t*sin(4*t) y(t) = 12*t + 200...

2 days ago | 0

Answered
Why won't my x-axis tick label format change?
Add these two lines to your code: xt_sigfig = round(xt, 3, 'significant'); ax.XTickLabel = xt_sigfig; so the complet...

3 days ago | 0

| accepted

Answered
how characters connected in quotes
See the char documentation for information on character arrays, and string for information on string arrays. Those should pro...

3 days ago | 0

| accepted

Answered
Design IIR filter from absorption data
Use the freqz function: figure freqz(b, a, 2^14, Fs) set(subplot(2,1,1), 'XLim',[0 1E+3]) % Optional set(sub...

3 days ago | 0

Answered
Graph does not plot/show zero-zero points
Your loop is not iterating. i = 1:1 produces: i = 1

3 days ago | 1

Answered
Split every current signal into N segments of Length L
Assuming I understand waht you want to do, I would use the Signal Processing Toolbox buffer function to do that. You would ha...

3 days ago | 0

| accepted

Answered
problem in z transform
Use the simplify function: ZT = simplify(ZT, 'Steps',500); to get: ZT = 2/(z - 2)

3 days ago | 0

| accepted

Answered
How to use fzero to solve for a variable in an exponent?
Take the fzero call out of the function it calls: X1 = 0.5; X2 = 0.5; A12 = 1.6798; A21 = 0.9227; AW = 7.96681; BW = 1668...

3 days ago | 0

Answered
Assigning Input String To Meet Criteria
The logical equality does not work with character arrays. Use strcmp or (strcmpi) instead: gender = 'boy'; TestLogic = str...

3 days ago | 1

| accepted

Answered
Using indexing to find specific rows
There are a number of ways to read your file. With respect to the rounding, that is only in the display. MATLAB maintains full...

4 days ago | 0

| accepted

Answered
how make multiple cut or crop of time series
We do not know the dimensions of ‘Speed’. Assuming it is a vector, to concatenate the indices, enclose them in square brackets:...

4 days ago | 0

| accepted

Answered
How to find all rows and columns that contain a specific value in MATLAB
Try this: A = randi([0 1], 10, 5); % Create Array 'A' A([4 8],:) = zeros(2,5); ...

4 days ago | 0

| accepted

Answered
How to plot an equation at a certain variable value?
One approach: Vmax=5; %Given% K =20; %Given% S=0:1:100; %Range of values from 0 to 100 at increments of 1% h = [1 2 10]; f...

4 days ago | 1

| accepted

Answered
how can I save multiple files
Tell save exactly what you want it to save. See the documentation section on: Save Specific Variables to MAT-File for details...

4 days ago | 0

Answered
Why doesn't my code recognize my function outputs
Yopu code does not specifically ask for that variable. Try this instead: for J=1:4 [survivalProb, avgSurvival] = testS...

4 days ago | 0

Answered
How can I do the same calculation multiple times for specified values of a variable
Thios does the same as yoiur code, using a loop, and a simplified plot call: x = 0:1:100; Co = 22; t1 = 30000; t2 = 60000; ...

4 days ago | 0

| accepted

Answered
How to solve a system of integral equations?
It is probably best to use the more robust fsolve in the function instead of fzero. Try this: function S = Integralsystem(x...

4 days ago | 0

Answered
2D plot with 3 axis and 3 column data
I have no idea which column is which curve. Try this: [D,T,R] = xlsread('Kitap3.xlsx'); Q1 = D(1:15,:); time = linspace...

4 days ago | 1

| accepted

Answered
How can I seperate these number from a cell and put it into a matrix.
Try this: [num,txt,raw] = xlsread('2019_nC0v_20200121_20200126_cleaned.xlsx'); vars = regexp(txt(1,:), ',', 'split'); varsc ...

4 days ago | 1

| accepted

Load more