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

답변 있음

How can I change where a variable is placed within the field width using fprintf?

I am not certain what you are doing. Try this without the loop (that is not necessary): fprintf(fid, repmat('%20s\t',1,nume...

How can I change where a variable is placed within the field width using fprintf?

I am not certain what you are doing. Try this without the loop (that is not necessary): fprintf(fid, repmat('%20s\t',1,nume...

약 3시간 전 | 0

답변 있음

ODE Solver with array value parameter

Try this example: yv = randn(1002,1); % Create ‘y’...

ODE Solver with array value parameter

Try this example: yv = randn(1002,1); % Create ‘y’...

약 4시간 전 | 0

답변 있음

Assigning random numbers to multiple vectors

I am not certain what you are doing, or what the requirements of what is probably a homework problem are. First, ‘sEggs’ and ...

Assigning random numbers to multiple vectors

I am not certain what you are doing, or what the requirements of what is probably a homework problem are. First, ‘sEggs’ and ...

약 8시간 전 | 0

| 수락됨

답변 있음

Hi there. i want to know that how can i change my MATLAB scale from scientific notation to mannual? I have my values on Y axis as [668.85 2548 5733 10192 15925 22932]

See if the Numeric Ruler Property Exponent does what you want. (This was introduced in R2015b, so it will apply to that and lat...

Hi there. i want to know that how can i change my MATLAB scale from scientific notation to mannual? I have my values on Y axis as [668.85 2548 5733 10192 15925 22932]

See if the Numeric Ruler Property Exponent does what you want. (This was introduced in R2015b, so it will apply to that and lat...

약 8시간 전 | 0

답변 있음

How to save vector from loop?

The essence of what you have should probably work. One change: r{v+1} = x(imag(x)==0); This saves ‘r’ as a cell array, all...

How to save vector from loop?

The essence of what you have should probably work. One change: r{v+1} = x(imag(x)==0); This saves ‘r’ as a cell array, all...

약 11시간 전 | 0

| 수락됨

답변 있음

How do I upgrade my MATLAB from 2019a to 2019b

See if Get the Latest Release does what you want.

How do I upgrade my MATLAB from 2019a to 2019b

See if Get the Latest Release does what you want.

약 17시간 전 | 0

답변 있음

naming your rows and column for a matrix

Use array2table to put your matrix in a table (R2013b and later). Name the columns with Specify Variable Names, and the rows w...

naming your rows and column for a matrix

Use array2table to put your matrix in a table (R2013b and later). Name the columns with Specify Variable Names, and the rows w...

1일 전 | 1

답변 있음

Defining the limits for discrete time sequence on x axis using stem command

Add these lines to each subplot: xt = get(gca, 'XTick'); set(gca, 'XTick',min(xt):max(xt)) so the revised code is now: x=[...

Defining the limits for discrete time sequence on x axis using stem command

Add these lines to each subplot: xt = get(gca, 'XTick'); set(gca, 'XTick',min(xt):max(xt)) so the revised code is now: x=[...

1일 전 | 0

| 수락됨

답변 있음

How to locate a decimal in a matrix?

It depends on what you want. If you want the indices, use both. If you want the values, just rem (or mod) will work. Try th...

How to locate a decimal in a matrix?

It depends on what you want. If you want the indices, use both. If you want the values, just rem (or mod) will work. Try th...

1일 전 | 1

| 수락됨

답변 있음

The most efficient way to locate the first 1's in each row of a matrix

The max function will return the indices of the first instances of the maximum value it encounters, in the desired dimension. S...

The most efficient way to locate the first 1's in each row of a matrix

The max function will return the indices of the first instances of the maximum value it encounters, in the desired dimension. S...

1일 전 | 1

답변 있음

Ploting problems with handle, maybe I have changes in this function.

Although I usually suggest that images of code are inappropriate, that might be a way to figure out what is wrong with this line...

Ploting problems with handle, maybe I have changes in this function.

Although I usually suggest that images of code are inappropriate, that might be a way to figure out what is wrong with this line...

1일 전 | 0

답변 있음

Need help implementing a 2D circular gaussian

If you want to plot a surface, you need to use matrix arguments. Try this: x = linspace(-3, 3); y = x; [X,Y] = ndgrid(x,y...

Need help implementing a 2D circular gaussian

If you want to plot a surface, you need to use matrix arguments. Try this: x = linspace(-3, 3); y = x; [X,Y] = ndgrid(x,y...

1일 전 | 1

| 수락됨

답변 있음

exp(A) gives zero in the first argument

Try this: format longE exp([71 307]) producing: ans = 6.837671229762744e+30 2.130129192828224e+133 See the docu...

exp(A) gives zero in the first argument

Try this: format longE exp([71 307]) producing: ans = 6.837671229762744e+30 2.130129192828224e+133 See the docu...

1일 전 | 0

| 수락됨

답변 있음

how to plot a continuous signal

This should get you started: u = @(t) t>=0; x = @(t,u) cos(200*pi*t.*u(t)); t = linspace(-1, 1); figure(1) plot(t, x(t,u))...

how to plot a continuous signal

This should get you started: u = @(t) t>=0; x = @(t,u) cos(200*pi*t.*u(t)); t = linspace(-1, 1); figure(1) plot(t, x(t,u))...

1일 전 | 0

| 수락됨

답변 있음

How to change the color of a plane

How would you define ‘Z0’ as a matrix the size of ‘X’ (or ‘‘Y’) that is uniformly zero? (We only give hints to homework probl...

How to change the color of a plane

How would you define ‘Z0’ as a matrix the size of ‘X’ (or ‘‘Y’) that is uniformly zero? (We only give hints to homework probl...

1일 전 | 0

답변 있음

how to find slope for certain area in graph.

To limit ‘angle’ (and ‘force’) to calculate the slope only on the ‘angle’ limits between 2 and 14, try this: Lv = (angle >= 2)...

how to find slope for certain area in graph.

To limit ‘angle’ (and ‘force’) to calculate the slope only on the ‘angle’ limits between 2 and 14, try this: Lv = (angle >= 2)...

1일 전 | 0

| 수락됨

답변 있음

Problem with function legend

Setting: opengl software appears to work for this problem. Also consider: Use Software OpenGL for Future Sessions. See th...

Problem with function legend

Setting: opengl software appears to work for this problem. Also consider: Use Software OpenGL for Future Sessions. See th...

1일 전 | 0

답변 있음

how to eliminate undesidered lines

Use the sort or sortrows function to sort your data by the independent variable values.

how to eliminate undesidered lines

Use the sort or sortrows function to sort your data by the independent variable values.

1일 전 | 0

답변 있음

Designing a Notch Filter

See: Remove the 60 Hz Hum from a Signal EDIT — (19 Oct 2019 at 3:55) Or, if you want to do it without the filter design ...

Designing a Notch Filter

See: Remove the 60 Hz Hum from a Signal EDIT — (19 Oct 2019 at 3:55) Or, if you want to do it without the filter design ...

2일 전 | 0

답변 있음

How can I plot a filled cylinder with a specific height?

You can use the cylinder function, however writing your own code is more fun: x = [1 3]; y = [2 5]; r=1; hgt = [2 3]; th=0...

How can I plot a filled cylinder with a specific height?

You can use the cylinder function, however writing your own code is more fun: x = [1 3]; y = [2 5]; r=1; hgt = [2 3]; th=0...

2일 전 | 0

답변 있음

Problem with my code?

I do not see that you defined ‘Qfresh’ anywhere in your function.

Problem with my code?

I do not see that you defined ‘Qfresh’ anywhere in your function.

2일 전 | 0

답변 있음

Curve fitting by Genetic Algorithm

I can fit part of your data, however not all of it, because there is some noise in elements 19 through 24 that your function is ...

Curve fitting by Genetic Algorithm

I can fit part of your data, however not all of it, because there is some noise in elements 19 through 24 that your function is ...

3일 전 | 1

| 수락됨

답변 있음

lsqcurvefit fitting not good

Choose different values for ‘x0’. I used these: x0 = [-2.6; 17; 0.7; 7; 0.0001; -0.7; 0.7]; to get this result: x = -...

lsqcurvefit fitting not good

Choose different values for ‘x0’. I used these: x0 = [-2.6; 17; 0.7; 7; 0.0001; -0.7; 0.7]; to get this result: x = -...

3일 전 | 1

| 수락됨

답변 있음

The @ symbol in Matlab

The ‘@’ denotes a function handle. See: What Is a Function Handle? for an extended discussion. In this instance, ‘f’ is ...

The @ symbol in Matlab

The ‘@’ denotes a function handle. See: What Is a Function Handle? for an extended discussion. In this instance, ‘f’ is ...

3일 전 | 0

답변 있음

How can I plot a X where my dataset crosses the X axis (y=0), but only when dy/dx > 0?

To detect the zero-crossings, the code in Easy way of finding zero crossing of a function , and you can interpolate to get the e...

How can I plot a X where my dataset crosses the X axis (y=0), but only when dy/dx > 0?

To detect the zero-crossings, the code in Easy way of finding zero crossing of a function , and you can interpolate to get the e...

4일 전 | 0

답변 있음

Matrix dimensions must agree.

Note that you used element-wise division some times when you divided by ‘(2*L)’ but not other times: ue = 1-2.*cos((3.*pi.*x)....

Matrix dimensions must agree.

Note that you used element-wise division some times when you divided by ‘(2*L)’ but not other times: ue = 1-2.*cos((3.*pi.*x)....

4일 전 | 0

답변 있음

Find intersection of 2 normal distribution

The ‘val’ value is the x-value of the intersection, however you need to start fzero in the correct region for it to return the c...

Find intersection of 2 normal distribution

The ‘val’ value is the x-value of the intersection, however you need to start fzero in the correct region for it to return the c...

4일 전 | 2

| 수락됨

답변 있음

solving similtanous equations in loop

One approach: x = [1,2,3,4,5,6,7]; y = [1,2,3,4,5,6,7]; [X,Y] = meshgrid(x,y); xv = X(:); yv = Y(:); % -3*w*sin(x)+ 5*q...

solving similtanous equations in loop

One approach: x = [1,2,3,4,5,6,7]; y = [1,2,3,4,5,6,7]; [X,Y] = meshgrid(x,y); xv = X(:); yv = Y(:); % -3*w*sin(x)+ 5*q...

4일 전 | 0

답변 있음

Low Pass filter not working

Your stopband attenuation is likely not sufficient to produce any difference. Try this instead: Rs = 60; ...

Low Pass filter not working

Your stopband attenuation is likely not sufficient to produce any difference. Try this instead: Rs = 60; ...

4일 전 | 0

답변 있음

Plotting bacterial growth using odes

I believe Monod kinetics and curve fitting can help. You are not fitting data, so just use the ODE and ode45 call syntax. ...

Plotting bacterial growth using odes

I believe Monod kinetics and curve fitting can help. You are not fitting data, so just use the ODE and ode45 call syntax. ...

4일 전 | 0

| 수락됨