Community Profile

photo

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
  • Revival Level 3
  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 3
  • First Submission
  • Grand Master
  • 36 Month Streak
  • Thankful Level 3
  • Knowledgeable Level 4
  • First Answer
  • Scavenger Finisher
  • Solver

View badges

Content Feed

Answered
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) % ...

circa 7 ore ago | 0

Answered
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...

circa 10 ore ago | 0

Answered
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...

circa 10 ore ago | 0

Answered
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...

circa 11 ore ago | 0

Answered
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...

circa 11 ore ago | 0

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

circa 13 ore ago | 0

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

circa 13 ore ago | 0

Answered
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...

circa 15 ore ago | 0

Answered
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...

circa 17 ore ago | 1

| accepted

Answered
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...

circa 19 ore ago | 1

| accepted

Answered
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 ...

circa 19 ore ago | 0

Answered
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;...

1 giorno ago | 0

| accepted

Answered
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...

1 giorno ago | 0

Answered
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...

2 giorni ago | 0

Answered
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...

2 giorni ago | 0

Answered
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) ...

2 giorni ago | 0

| accepted

Answered
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 giorni ago | 0

| accepted

Answered
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 giorni ago | 0

Answered
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 giorni ago | 0

Answered
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 giorni ago | 0

| accepted

Answered
Reading data of nonstandard format
I use textscan for these problems. Try this — fidi = fopen('reconstructed[1].txt','rt') k1 = 1; while ~feof(fidi) HL...

4 giorni ago | 0

| accepted

Answered
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 giorni ago | 0

| accepted

Answered
Restore old editor in R2021b?
Set the fonts by clicking on Preferences in the ENVIRONMENT section of the MATLAB toolbar (at the top of the window in the HOME ...

4 giorni ago | 0

Answered
Help Plotting Diffusion Equation in MatLab
One option is to stack them in the same axes — x = linspace(-200, 200); v = logspace(-2, 2, 10); y = exp(-(x./v(:)).^2); ...

4 giorni ago | 0

Answered
Impossible to do an indexing
I suspect the problem is with: soleus(stim_Hz) Here, ‘stim_Hz’ must be either logical, or integers greater than 0. There are...

5 giorni ago | 0

Answered
Converting syms to double
I have no idea what you are actually doing, however converting between symbolic and double is straightforward (if inefficient in...

5 giorni ago | 0

Answered
how to assign indexes to a function handle?
‘But I want to use a vector "f" insted of a single number to have a vector of "TL" values.’ I cannot run that because there a...

5 giorni ago | 1

| accepted

Answered
smoothdata function not working for matrix . any one have ideas to what is going on?
Try this — LD = load('mat.mat'); a = LD.a; for k = 1:size(a,2) a_smoothed(:,k) = smoothdata(a(:,k)); end x = 1:si...

5 giorni ago | 0

Answered
problem with fit function for data
The fit function requires column vector arguments. Force that sith the ‘(:)’ subscript noitation. E = [416.861, 818.7, 109...

5 giorni ago | 1

| accepted

Answered
How to use one marker for looped plots in legend
I cannot run the posted code, however the solution may be straightforward. figure hold on for k = 1:50 hs{1} = scatter...

5 giorni ago | 0

| accepted

Load more