Respondida

I want to plane fit my sperical data points.

Assuming a spherical surface with unknown origin (and perhaps radius), you can run an optimization algorithm to estimate the mod...

I want to plane fit my sperical data points.

Assuming a spherical surface with unknown origin (and perhaps radius), you can run an optimization algorithm to estimate the mod...

casi 2 años hace | 0

| aceptada

Respondida

how to convert z parameter to s parameter?

Depending on which way you want to go: % Ohm to dB Z = 4.17; ZdB = 20 * log10(Z) % dB to ohm ZdB = 12.39; Z = 10^(ZdB / ...

how to convert z parameter to s parameter?

Depending on which way you want to go: % Ohm to dB Z = 4.17; ZdB = 20 * log10(Z) % dB to ohm ZdB = 12.39; Z = 10^(ZdB / ...

casi 2 años hace | 0

Respondida

How to replace NAN values in a string to a zero value

Your for-loop is not a valid MATLAB expression. It should probably be: for i = 1:n end When i == 0, VW(i) would not be vali...

How to replace NAN values in a string to a zero value

Your for-loop is not a valid MATLAB expression. It should probably be: for i = 1:n end When i == 0, VW(i) would not be vali...

casi 2 años hace | 0

Respondida

how to smooth or filter the signal like this?

You can apply a low-pass filter to remove the noise in the signal before taking the Fourier Transform of the data: load('data.m...

how to smooth or filter the signal like this?

You can apply a low-pass filter to remove the noise in the signal before taking the Fourier Transform of the data: load('data.m...

casi 2 años hace | 0

Respondida

Why am I receiving multiple database errors for a simple line of code?

Your for loop index, i, goes up to size(ALPI01.time) and you are trying to index into the (i+1)th entry of the variable ALPI01...

Why am I receiving multiple database errors for a simple line of code?

Your for loop index, i, goes up to size(ALPI01.time) and you are trying to index into the (i+1)th entry of the variable ALPI01...

casi 2 años hace | 0

| aceptada

Respondida

Why is my code not working?

The variables (ad, ag, etc.) that you need in your functions T(t), etc. need to be defined in the functions themselves. Also, f...

Why is my code not working?

The variables (ad, ag, etc.) that you need in your functions T(t), etc. need to be defined in the functions themselves. Also, f...

casi 2 años hace | 0

Respondida

How do you do a sine transform in Matlab?

According to Wikipedia, versions of it can be computed using the discrete cosine transform: "A DST-III or DST-IV can be computed...

How do you do a sine transform in Matlab?

According to Wikipedia, versions of it can be computed using the discrete cosine transform: "A DST-III or DST-IV can be computed...

casi 2 años hace | 0

Respondida

error illegal methods use

You seem to have a missing "end" around line 80-81 at the end of the "switch" block. You need an "end" at the end of the functio...

error illegal methods use

You seem to have a missing "end" around line 80-81 at the end of the "switch" block. You need an "end" at the end of the functio...

casi 2 años hace | 0

| aceptada

Respondida

How can I use interp1 to interpolate the last row of a matrix?

Interpolation is probably not the right term here since interpolation, typically, requires a set of (x,y) data and a different s...

How can I use interp1 to interpolate the last row of a matrix?

Interpolation is probably not the right term here since interpolation, typically, requires a set of (x,y) data and a different s...

casi 2 años hace | 0

Respondida

How to do PCA in Matlab?

You can use the pca command from the Statistics and Machine Learning Toolbox: https://www.mathworks.com/help/stats/pca.html. ...

How to do PCA in Matlab?

You can use the pca command from the Statistics and Machine Learning Toolbox: https://www.mathworks.com/help/stats/pca.html. ...

casi 2 años hace | 0

Respondida

Storing a portion of a signal for real time processing in Simulink

The typical approach to convert a sine wave to square wave is to use a Schmitt Trigger. Simscape library has a block for this, w...

Storing a portion of a signal for real time processing in Simulink

The typical approach to convert a sine wave to square wave is to use a Schmitt Trigger. Simscape library has a block for this, w...

casi 2 años hace | 0

Respondida

How to program a push button which will display the graphs signal filter

You can set the Visible property of the line object handles to 'off' to hide them. Set them off in your button callback. x = (...

How to program a push button which will display the graphs signal filter

You can set the Visible property of the line object handles to 'off' to hide them. Set them off in your button callback. x = (...

casi 2 años hace | 1

Respondida

I want to ask about low pass filter in app design

It looks like you are showing the filtered image (an) on the same uiaxes as the original image, so they are overlapping. You wo...

I want to ask about low pass filter in app design

It looks like you are showing the filtered image (an) on the same uiaxes as the original image, so they are overlapping. You wo...

casi 2 años hace | 0

| aceptada

Respondida

How to add two conditions to a plot?

You had unmatched parentheses among other things. x = 1:10; u = rand(1,10); v = rand(1,10); AL = rand(1,10); BE = rand(1,10...

How to add two conditions to a plot?

You had unmatched parentheses among other things. x = 1:10; u = rand(1,10); v = rand(1,10); AL = rand(1,10); BE = rand(1,10...

casi 2 años hace | 0

| aceptada

Respondida

Not enough input arguments error/ int command/ integral calculation

Use the integral command, not int. The integral command does numerical integration. The int command is for symbolic integration....

Not enough input arguments error/ int command/ integral calculation

Use the integral command, not int. The integral command does numerical integration. The int command is for symbolic integration....

casi 2 años hace | 0

| aceptada

Respondida

how to pan stereo audio on Matlab

For stereo audio, your data has to be an n x 2 matrix. Then you can multiply each channel (column) by a weight between 0 and 1 t...

how to pan stereo audio on Matlab

For stereo audio, your data has to be an n x 2 matrix. Then you can multiply each channel (column) by a weight between 0 and 1 t...

casi 2 años hace | 0

| aceptada

Respondida

Sending a variable from MATLAB to Arduino

You have to call Serial.read() in loop() and not in setup(), since setup() is called only once when Arduino starts running. Also...

Sending a variable from MATLAB to Arduino

You have to call Serial.read() in loop() and not in setup(), since setup() is called only once when Arduino starts running. Also...

casi 2 años hace | 1

| aceptada

Respondida

What is MathWorks's preferred way to receive product feedback?

You can Create Service Request and select the Technical Support option, which also includes suggestions: https://www.mathworks.c...

What is MathWorks's preferred way to receive product feedback?

You can Create Service Request and select the Technical Support option, which also includes suggestions: https://www.mathworks.c...

casi 2 años hace | 2

| aceptada

Respondida

ERROR // Array indices must be positive integers or local values

In MATLAB, array indexing is 1-based, not 0-based. The first element of colorData, etc. would be colorData(1). Occasionally, ra...

ERROR // Array indices must be positive integers or local values

In MATLAB, array indexing is 1-based, not 0-based. The first element of colorData, etc. would be colorData(1). Occasionally, ra...

casi 2 años hace | 1

Respondida

How we can figure the Fast Fourier Transform of a district time history data?

Your sine function's frequency is not 5 Hz, it is 5 rad/sec. To get the frequency in Hz, multiply the argument to the sine funct...

How we can figure the Fast Fourier Transform of a district time history data?

Your sine function's frequency is not 5 Hz, it is 5 rad/sec. To get the frequency in Hz, multiply the argument to the sine funct...

casi 2 años hace | 0

Respondida

How to get calibration values for my accelerometer

It looks like this IC has a 16-bit ADC. Depending on which acceleration range you select, the magnitude would be scaled as: ran...

How to get calibration values for my accelerometer

It looks like this IC has a 16-bit ADC. Depending on which acceleration range you select, the magnitude would be scaled as: ran...

casi 2 años hace | 0

Respondida

Unable to change Marker Size in Scatter Plot

You just need to pick a good value: x = rand(10,1); y = rand(10,1); subplot(211) scatter(x,y) subplot(212) scatter(x,y,...

Unable to change Marker Size in Scatter Plot

You just need to pick a good value: x = rand(10,1); y = rand(10,1); subplot(211) scatter(x,y) subplot(212) scatter(x,y,...

casi 2 años hace | 1

Respondida

run a for loop for 240 minutes

% Runs for 5 seconds (i.e., 5/60 minutes) T = 5/60; % minutes ti = datetime('now'); tf = datetime('now'); while (minutes(tf-...

run a for loop for 240 minutes

% Runs for 5 seconds (i.e., 5/60 minutes) T = 5/60; % minutes ti = datetime('now'); tf = datetime('now'); while (minutes(tf-...

casi 2 años hace | 2

Respondida

Is There a Command in MATLAB Like WorkingPrecision in MATHEMATICA?

Yes, if you have access to Symbolic Math Toolbox. See https://www.mathworks.com/help/symbolic/vpa.html. Otherwise, you will get ...

Is There a Command in MATLAB Like WorkingPrecision in MATHEMATICA?

Yes, if you have access to Symbolic Math Toolbox. See https://www.mathworks.com/help/symbolic/vpa.html. Otherwise, you will get ...

casi 2 años hace | 1

Respondida

how to approximate set of point to a given function

This is an optimization problem that can be solved using fminsearch and a least-squares cost function. % "Unknown" model parame...

how to approximate set of point to a given function

This is an optimization problem that can be solved using fminsearch and a least-squares cost function. % "Unknown" model parame...

casi 2 años hace | 1

Respondida

Vector range error in matlab

Works just fine for me: o = [2, 4, -3, 0, 1, 5, 7]; range(o) mean(o) median(o) You can do which -all range to see which r...

Vector range error in matlab

Works just fine for me: o = [2, 4, -3, 0, 1, 5, 7]; range(o) mean(o) median(o) You can do which -all range to see which r...

casi 2 años hace | 0

Respondida

Plotting an evelope between high and low price forecasting

high = rand(10,1) + 2; low = rand(10,1); med = (high+low) / 2; year = (1:10)'; % Corners of the patch to paint. patch(......

Plotting an evelope between high and low price forecasting

high = rand(10,1) + 2; low = rand(10,1); med = (high+low) / 2; year = (1:10)'; % Corners of the patch to paint. patch(......

casi 2 años hace | 1

| aceptada

Respondida

How to color the colormap with a set of hexadecimal colors?

You can use a function like this in a loop: map = {'E1F2E3','CDE5D2','9CCEA7','6CBA7D','40AD5A','22BB3B','06592A'} N = numel...

How to color the colormap with a set of hexadecimal colors?

You can use a function like this in a loop: map = {'E1F2E3','CDE5D2','9CCEA7','6CBA7D','40AD5A','22BB3B','06592A'} N = numel...

casi 2 años hace | 0

Respondida

I need to add and multiply a vetor

This looks like the dot product of the subvectors u(1:n-1) and u(2:end): u = cos(0:pi/20:pi); % Create the vector p = u(1:end-...

I need to add and multiply a vetor

This looks like the dot product of the subvectors u(1:n-1) and u(2:end): u = cos(0:pi/20:pi); % Create the vector p = u(1:end-...

casi 2 años hace | 1

Respondida

Display temperature reading of MAAX6675 on Matlab GUI via Arduino board

You will have to use the SPI interface of the Arduino support package to configure access to MAX6675: https://www.mathworks.com...

Display temperature reading of MAAX6675 on Matlab GUI via Arduino board

You will have to use the SPI interface of the Arduino support package to configure access to MAX6675: https://www.mathworks.com...

casi 2 años hace | 0