Community Profile # Star Strider

Last seen: Today Active 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.

#### Statistics

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

View by

How to combine the matrices ?
One approach — A = rand(293,13); B = rand(392,13); C = rand(480,13); ABC = cat(1,A,B,C) .

2 hours ago | 0

How to use FFTshift to produce a 0 frequency centered plot
The frequencies are not centred because of the way ‘fshift’ is calculated. Try this version — fs = 250; t = (0:1/fs:(0.1-....

2 hours ago | 0

The transfer function of a small position Sensor
If you actually want the transfer function, use the System Identification Toolbox functions — Displacement_d_mm = [0, 0.08, 0....

3 hours ago | 0

PARAMETER estimation of kinetic and adsorbtion constant of langmuir hinshelwood haugen watson model
I have no idea what ‘Model E’ is. I assume that it was coded correctly, however even at that, I cannot get the data to fit it, ...

4 hours ago | 0

rotating the plot axis
I am not certain what you intend by ‘rotate the axis’. It is a(4x4) matrix, so if you want to plot the transpose, just plot the...

5 hours ago | 0

| accepted

Help Using Solve Function
Try something like this — Gamma=1.4 Mu_2=MuM(2.2, Gamma,10); M_2 = FindM_2(Mu_2,Gamma) function [M_2]=FindM_2(Mu_2,Gamm...

8 hours ago | 0

How to make syms functions have specific values
One approach — syms c F(x) x dF = diff(F) F(x) = dsolve(dF == c, F(0)==0) c = solve(diff(F)==1,c) % ...

20 hours ago | 0

Plot specific rows with an defined offset
One approach — f = 0:49; Spectra = rand(10, 50); Scores = randn(10,1); Offset = Scores; Offset((Offset>-0.5) & (Offset<0...

23 hours ago | 0

| accepted

How to solve surface plot viewing issue?
Using an axes call could make the axis limits a bit more obvious, and to call attention to a specific point, one option is to d...

23 hours ago | 0

Taking elements of matrix into coefficient of a function
Try this — A = [randi(9) randi(9) randi(9)] x = 1:1e-2:2; y = polyval(flip(A), x); figure plot...

1 day ago | 0

how to normalize two graphs to each other?
Try something like this — D = randn(1,500); figure hfh = histfit(D); hfh(2).YData = hfh(2).YData * max(hfh(1).YData)/ma...

1 day ago | 0

| accepted

how to obtain the bode plot of trans function in matlab?
See if using the bode (or bodeplot) funciton will do what you want. .

1 day ago | 0

how to obtain Nyquist plots ?
See if using the nyquist function will do what you want. .

1 day ago | 0

How to obtain a particular value from set of matrix
If they are not already in some sort of array themselves, it would first be necessary to put them in one. Then extracting the e...

1 day ago | 0

FFT from a .CSV not giving the correct results
It works correctly. However it is also taking the Fourier ttransform of the time vector, so restricting it to only the data vec...

1 day ago | 1

| accepted

How to remove legend entries from saved .fig file?
One approach — figure; x = linspace(0,pi); y1 = cos(x); p1 = plot(x,y1); hold on y2 = cos(2*x); p2 = plot(x,y2); y3...

1 day ago | 1

| accepted

Using the Rigol 5000 series in Matlab
The only reference I could find for it is Overview - Using MATLAB Software with Rigol Instruments and apparently the Instrument ...

1 day ago | 0

how to plot a matrix values in 3d plot
It would be nice to have the ‘z’ matrix as well, however in its absence, I will create one. x=[0.2;0.5;0.8;1;1.5]; y=[0;0.2;...

2 days ago | 0

| accepted

Select a record from a table where an exact value is not provided
This is a bit ambiguous. If the simulation is a system of differential equations, the time vector (‘tspan’ in the documentati...

2 days ago | 0

Error in bvp4c
The symbolic Math Toolbox disagrees with you with respecty to ‘bvpfun’, however I don’t know if that was the problem. (I use it...

3 days ago | 0

How can I use xticks with a bigger range of values towards x axis
Perhaps semilogx would do what you want. A different way to do the same thing — set(gca, 'XScale','log') xlim([1e+3 1e...

3 days ago | 0

How to do math to entirety of a vector?
Creating it as an anonymolus function and using it with arrayfun and cell2mat is an option — selectIndicies = @(selectSpaces) ...

3 days ago | 0

| accepted

How to write a program to find the Factorial for a series of number
Take advantage of MATLAB’s vectorisation capability — N = 10; ff = (1:N) ./ cumprod(1:N) ffsum = sum(ff) Make appropria...

3 days ago | 0

| accepted

Remove outliesrs (matlab2016b)
If you have the Signal Processing Toolbox, the hampel function (introduced in R2015b) could do what you want. Check your own R2...

3 days ago | 0

I need to find the probability of an event happening given the population mean, a sample size and how many times I need it to happen
The question as stated actually doesn’t make much sense, because ‘cases’ should have some sort of probability distribution. T...

3 days ago | 0

How to convert day information to a number?
Experiment with something like this — daynr = @(x) find(strcmp(x, {'Mon','Tue','Wed','Thu','Fri','Sat','sun'})); nr = day...

4 days ago | 0

| accepted

I use textscan for these problems. Try this — fidi = fopen('reconstructed.txt','rt') k1 = 1; while ~feof(fidi) HL...

4 days ago | 0

| accepted

How to draw a line between two points on a graph?
I recognise that code! I added this plot call to the others in the loop: plot([minx maxx], [0 0], '-k', 'LineWidth',1) ...

4 days ago | 0

| accepted