Community Profile

photo

Star Strider


12,916 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.

連絡する

Star Strider's バッジ

  • 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

詳細を表示...

貢献した分野
表示方法

回答済み
Adding Color Under Certain Areas of Function Plot
Try this: % %% Part 1: Solar Radiation %Constants: h = 6.626e-34; k = 1.381e-23; c = 2.998e8; t = 5800; r_sun = 1.39e9/...

約14時間 前 | 0

回答済み
function with ln and log
It is missing a multiplication operator: y2 = (x-1)(log((3^.5)/2)*x-log(3/8)); ↑ Try this: y2 = (x-1).*(log((3^.5...

約22時間 前 | 0

回答済み
Plotting a line given its slope and one coordinate
Try this: x = 88; y = 56; slope = 1.08; y_intercept = y - slope*x; xv = [0 100]; figure plot(xv, slope*xv+y_intercep...

1日 前 | 0

回答済み
Need help displaying an output file for data.
I have no idea what you want to do. However if you create a table of your results, writetable could do what you want.

1日 前 | 1

| 採用済み

回答済み
Repeat 3-D array elements
Use the repmat function: A = rand(67, 960, 80); B = repmat(A, 1, 1, 3); sizeB = size(B) producing: sizeB = 67 960 ...

2日 前 | 0

| 採用済み

回答済み
AREA UNDER the CURVE
Defining your matrix as ‘M’, use the trapz function twice, once in each dimension: AUC = trapz(trapz(M)) producing: AUC = ...

2日 前 | 0

| 採用済み

回答済み
Fitting data in x,y to a known function
Use the fminsearch function to fit your data: x1 = linspace(1,32,32); y1 = [0.01 0.02 0.02 0.02 0.02 0.02 0.03 0.03 0.03 0.04...

2日 前 | 0

| 採用済み

回答済み
How can my function work?
Either change the function output to ‘Wans’: function Wans = fishing_load_factor(t) or change the ‘Wans’ within it to ‘W’.

2日 前 | 0

回答済み
error bars in bar plot with categories
This seems to be an XOR situation. Apparently, it is possible to have categorical x-values or errorbar bars but not both. Th...

2日 前 | 0

| 採用済み

回答済み
Plot dB/dt vs. time by ODE45 (coupled differential equations)
One option is to loop through the ‘odes’ function with the time vector and solved values for ‘varsol’. A much easier option i...

2日 前 | 1

回答済み
How to integrate after a derivative?
The result you want is not obvious. This runs without error, however you will need to determine if the result is what you wan...

3日 前 | 0

回答済み
Remove the 50 Hz Hum from a Signal
The designfilt call designs a second-order Butterworth filter. It appears to be correct when I analyse it with freqz. Without ...

3日 前 | 0

回答済み
Fitting 2 data sets simultaneously using two different equations with some shared fit parameters.
Try this: global_fit_data = [A; B].'; % A and B are vectors of size 1X85 t = (0:10:840).'; global_fit_function = @(p,t) [p(3...

3日 前 | 0

| 採用済み

回答済み
how to i change the x-axis from time to angle with this data?
Without your code, an exact respoinse is not possible. See for example XTick and XTickLabel.

3日 前 | 0

回答済み
How can I solve a set of equations using a function handle?
Try this: BigLambdaFunction = @(p,t,T) 1 - p(1).*((p(2)-(t-T))./(p(2)-t)).*exp((p(1).*T)./p(2)) biglambda = [ 0.0455 0....

3日 前 | 0

| 採用済み

回答済み
@FinalProject_ode must return a column vector (solved)
Assuming all the elements are scalars, either transpose ‘dydt’ or put semicolons between the elements: dydt = [dPPARuFFA; dPPA...

4日 前 | 0

回答済み
How to fix the code
If you want to set ‘N’ to the row size of ‘DATA’, this is preferable: N = size(DATA,1); Perhaps you intend to read the entir...

4日 前 | 0

| 採用済み

回答済み
Should I shift my fft function?
It depends on the result you want. The shifted version plots the negative and positve frequencies (the Fourier transform is sym...

4日 前 | 0

| 採用済み

回答済み
Matlab Outputting answers as fractions
You are still in the Symbolic Math Toolbox environment. Try one of these (depending on the rresult you want): X = vpa(linso...

4日 前 | 1

| 採用済み

回答済み
Multiplying a 3x3 matrix where values change with each iteration by a 3x1 matrix with values that iterate
What part of my Comment to your previous post Struggling with iterative matrix multiplication does not work?

4日 前 | 0

回答済み
Highpass Filter Sound Help
Store the filtered signals in a cell array (easiest). Then use the playblocking function to play them back one after the other ...

4日 前 | 0

| 採用済み

回答済み
Why it plots more than just one point and how do I get rid of them
The code plots more than one point because you told it to. Revised code: function xp=h2(t,x) xp=zeros(2,1); xp(1)=(x(2)) ...

4日 前 | 0

回答済み
how to get rid of error which says too many output arguments
The ‘test3’ function needs to be: function xdot = test3(t,x) xdot(1)=x(2); xdot(2)= 10*(-2*x3 + x2); xdot=xdot'; end and ...

4日 前 | 0

回答済み
Add error bars to grouped bar plot
See: Adding standard error bars to grouped bar graph

4日 前 | 0

回答済み
Multiple outputs from anonymous function
One option is to have the two outputs to one vector, then separate them in a subsequent assignment: demo_fcn = @(in) [in(1) in...

4日 前 | 0

回答済み
How to show surface plot of 2D data?
Try this (with your own vectors): x = rand(10,1); % Create Data y = rand(10,1); ...

4日 前 | 1

| 採用済み

回答済み
Mldivide gives rank deficency when solving for large full system
See if the lsqr function will do what you want. Another option is to use pinv to do the matrix inversion (not normally an app...

4日 前 | 0

回答済み
i am not able to import excel sheet
One approach would be to open Excel, then save your spreadsheet as a .txt file (likely a comma-delimited text file). Then impor...

4日 前 | 0

回答済み
diff makes M less than what i want by 1 elment and i want to have second derivaitve numircal
Use the gradient function. Specifically: k = 0:0.1:5; figure(4) E=(k.^2)*(1.0540^2)/(2*1000*9.1); fx=gradient(E)./grad...

4日 前 | 0

回答済み
Hello, how to solve this equation E*I*k^4-m*v^2*k^2+2*m*v*w*k+(m+M)w^2=0 numerically where w is variable,
Supply all the scalar parameters, then: Eqn = @(w) E*I*k^2-m*​v^2*k^2+2*​m*v*w*k+(m​+M)w^2; w0 = 42; [w,fval] = fsolve(Eqn, ...

4日 前 | 0

| 採用済み

Load more