Feeds
답변 있음
how to make 3D image from x(50x1double),y(100x1double),z (80x1double), intensity(50x100x80)
Without having your actual data, perhaps something like ... efieldimage = repmat(linspace(1,255,255),128,1); numPoints = 6...
how to make 3D image from x(50x1double),y(100x1double),z (80x1double), intensity(50x100x80)
Without having your actual data, perhaps something like ... efieldimage = repmat(linspace(1,255,255),128,1); numPoints = 6...
8개월 전 | 0
답변 있음
Triangular-weighted moving average filter
Here's an example of high frequency noise being removed with a triangular filter, if by width you mean the base of the triangle:...
Triangular-weighted moving average filter
Here's an example of high frequency noise being removed with a triangular filter, if by width you mean the base of the triangle:...
8개월 전 | 0
답변 있음
Use string to define variable
There are many ways to do this. Here's one that shows how to make the format of the T and V values have the same width and will ...
Use string to define variable
There are many ways to do this. Here's one that shows how to make the format of the T and V values have the same width and will ...
8개월 전 | 0
답변 있음
Programmatically check type of parpool
delete(gcp('nocreate')) pool = parpool('Threads') class(pool) % test of whether or not pool is a thread parallel pool co...
Programmatically check type of parpool
delete(gcp('nocreate')) pool = parpool('Threads') class(pool) % test of whether or not pool is a thread parallel pool co...
9개월 전 | 3
| 수락됨
답변 있음
Average Absolute Deviation?
The Average Absolute Deviation (AAD) is the mean of deviations from a central point (central tendency). If the central point ...
Average Absolute Deviation?
The Average Absolute Deviation (AAD) is the mean of deviations from a central point (central tendency). If the central point ...
9개월 전 | 0
답변 있음
Fitting 2D Gaussian to histogram
Perhaps this way: clearvars; A = [574.96086;611.48546;524.57176;514.84221;598.11497;491.96027;508.39190;616.15544;593.87965;75...
Fitting 2D Gaussian to histogram
Perhaps this way: clearvars; A = [574.96086;611.48546;524.57176;514.84221;598.11497;491.96027;508.39190;616.15544;593.87965;75...
9개월 전 | 0
답변 있음
blanks
@lowcalorie G = repmat(strcat(" ",datestr(now,'yyyy/mmm/dd HH:MM:SS')," "),10,1) fprintf(1,'%s\n',strtrim(G));
blanks
@lowcalorie G = repmat(strcat(" ",datestr(now,'yyyy/mmm/dd HH:MM:SS')," "),10,1) fprintf(1,'%s\n',strtrim(G));
9개월 전 | 0
답변 있음
add white gaussian noise
@Jessie Bessel % signal is a sine wave of 2 Hz nSamples = 1000; f = 2; % [Hz] time = linspace(0, 2, nSamples+1); s...
add white gaussian noise
@Jessie Bessel % signal is a sine wave of 2 Hz nSamples = 1000; f = 2; % [Hz] time = linspace(0, 2, nSamples+1); s...
9개월 전 | 0
답변 있음
Hi , please what is the difference between randn and awgn , when adding white gaussian noise to get snr = 10dB , also I see difference in result when using snr function .
They are the same. % signal is a sine wave of 2 Hz nSamples = 10000; f = 2; % [Hz] time = linspace(0, 2, nSamples+1);...
Hi , please what is the difference between randn and awgn , when adding white gaussian noise to get snr = 10dB , also I see difference in result when using snr function .
They are the same. % signal is a sine wave of 2 Hz nSamples = 10000; f = 2; % [Hz] time = linspace(0, 2, nSamples+1);...
9개월 전 | 0
답변 있음
The detectImportOptions not able to recognize and use 2nd row of a file as column name
filename = 'data.csv'; dataTable = readtable(filename,'NumHeaderLines',1) dataTable = 1×4 table second Volt ...
The detectImportOptions not able to recognize and use 2nd row of a file as column name
filename = 'data.csv'; dataTable = readtable(filename,'NumHeaderLines',1) dataTable = 1×4 table second Volt ...
9개월 전 | 0
답변 있음
Unable to remove target from internal database
testTarget = target.create("Processor", Name="My Processor", Manufacturer="XXX"); languageimplementation = target.create('Lan...
Unable to remove target from internal database
testTarget = target.create("Processor", Name="My Processor", Manufacturer="XXX"); languageimplementation = target.create('Lan...
9개월 전 | 0
답변 있음
gaussian white noise with zero mean and 20 db power
You also need to define the signal power level to get the order of magnitude. signalPower = 2; % calculate the signal power fro...
gaussian white noise with zero mean and 20 db power
You also need to define the signal power level to get the order of magnitude. signalPower = 2; % calculate the signal power fro...
9개월 전 | 0
답변 있음
MATLAB HELP STANDARD DEVIATION, MEAN, HISTOGRAMS
Try this: force_lbs = [243,236,389,628,143,417,205,404,464,605,137,123,372,439,... 497,500,535,577,441,231,675,132,196,217...
MATLAB HELP STANDARD DEVIATION, MEAN, HISTOGRAMS
Try this: force_lbs = [243,236,389,628,143,417,205,404,464,605,137,123,372,439,... 497,500,535,577,441,231,675,132,196,217...
9개월 전 | 0
답변 있음
where is the setting to page/summarize large tables?
Did you try (and put a ';' at the end of the line to avoid outputting the whole table to console): summary(T)
where is the setting to page/summarize large tables?
Did you try (and put a ';' at the end of the line to avoid outputting the whole table to console): summary(T)
9개월 전 | 0
답변 있음
how to make color and lighting continuouse using patch
Try this: clear all; close all clc vertices=[0 0 0; 1 0 0; 1 1 0 ;0 1 0; 0 0 1; 1 0 1; 1 1 1; 0 1 1]; faces=[1 2 6 5; 2 3 7...
how to make color and lighting continuouse using patch
Try this: clear all; close all clc vertices=[0 0 0; 1 0 0; 1 1 0 ;0 1 0; 0 0 1; 1 0 1; 1 1 1; 0 1 1]; faces=[1 2 6 5; 2 3 7...
9개월 전 | 0
답변 있음
The mean (average) and standard deviation of the errors.
With simulated 'actual' and 'measured' data: x_actual_values = sin(linspace(0,pi,1000)); x_measured_values = x_actual_values +...
The mean (average) and standard deviation of the errors.
With simulated 'actual' and 'measured' data: x_actual_values = sin(linspace(0,pi,1000)); x_measured_values = x_actual_values +...
9개월 전 | 0
답변 있음
Im designing a game of battleship, but. im trying to use a code to prevent the user from placing a ship out of bounds
Here is a solution with user interaction/prompting: flagInteractive = 1; % prompt user for ship placement flagRepeatable = 0; ...
Im designing a game of battleship, but. im trying to use a code to prevent the user from placing a ship out of bounds
Here is a solution with user interaction/prompting: flagInteractive = 1; % prompt user for ship placement flagRepeatable = 0; ...
4년 초과 전 | 0
답변 있음
how to split image to 3 parts
Here are two ways: close all clear clc [imdata,~] = imread('image.jpeg'); % split into three color channels of equal ...
how to split image to 3 parts
Here are two ways: close all clear clc [imdata,~] = imread('image.jpeg'); % split into three color channels of equal ...
4년 초과 전 | 0
답변 있음
How to plot Taylor diagram for four time series.
Here's how: Download this: https://www.mathworks.com/matlabcentral/fileexchange/20559-taylor-diagram And the attached allsta...
How to plot Taylor diagram for four time series.
Here's how: Download this: https://www.mathworks.com/matlabcentral/fileexchange/20559-taylor-diagram And the attached allsta...
4년 초과 전 | 1
답변 있음
Index exceeds the number of array elements. Index must not exceed 1.
Hi, I was trying to figure out what your data are to help, but I couldn't find it online. I did find a spectrum at simbad. Is...
Index exceeds the number of array elements. Index must not exceed 1.
Hi, I was trying to figure out what your data are to help, but I couldn't find it online. I did find a spectrum at simbad. Is...
4년 초과 전 | 0
답변 있음
How can I plot on the same four figures on my code which changes while list numbers changing?
There's something amiss with the xlsx reading, but that wasn't the question. This will update the plots, with a slight delay be...
How can I plot on the same four figures on my code which changes while list numbers changing?
There's something amiss with the xlsx reading, but that wasn't the question. This will update the plots, with a slight delay be...
4년 초과 전 | 0
| 수락됨
답변 있음
Unwrapping the mesh on 2D plane
Here's one way - it's actually a bit overcomplicated than it needs to be in the code below to make it more general: R = 1; Num...
Unwrapping the mesh on 2D plane
Here's one way - it's actually a bit overcomplicated than it needs to be in the code below to make it more general: R = 1; Num...
4년 초과 전 | 0
| 수락됨
답변 있음
Error in copying figure - Variables - Error using Builtin Path - Could not be absulutized
type >> which pathdef It could be that the pathdef.m file is missing. If it is missing, type >> restoredefaultpath >> matl...
Error in copying figure - Variables - Error using Builtin Path - Could not be absulutized
type >> which pathdef It could be that the pathdef.m file is missing. If it is missing, type >> restoredefaultpath >> matl...
4년 초과 전 | 0
| 수락됨
답변 있음
Calculating closing speed between pair of aircraft
Is this what you're looking for? % Given values of positions and velocities of airplanes t0_s = [12.0*3600.0 + 0.0*60.0 + 2.0;...
Calculating closing speed between pair of aircraft
Is this what you're looking for? % Given values of positions and velocities of airplanes t0_s = [12.0*3600.0 + 0.0*60.0 + 2.0;...
4년 초과 전 | 0
답변 있음
Euclidian distance showing different result for different formula
Some code - look at the sizes of the arrays to see why: nsamples = 25; ncomponents = 4; s = RandStream('dsfmt19937','Seed',11...
Euclidian distance showing different result for different formula
Some code - look at the sizes of the arrays to see why: nsamples = 25; ncomponents = 4; s = RandStream('dsfmt19937','Seed',11...
4년 초과 전 | 0
답변 있음
Need help on this program
Try something like this: function valid = valid_date(year,month,day) if ((isscalar(year) && year>0 ) && (isscalar(month) && mo...
Need help on this program
Try something like this: function valid = valid_date(year,month,day) if ((isscalar(year) && year>0 ) && (isscalar(month) && mo...
4년 초과 전 | 1
| 수락됨
답변 있음
When I try simple statistics function normpdf, it does not work.
You can write your own normpdf if that is all you need. Here it is as an anonymous function (see: https://www.originlab.com/doc...
When I try simple statistics function normpdf, it does not work.
You can write your own normpdf if that is all you need. Here it is as an anonymous function (see: https://www.originlab.com/doc...
4년 초과 전 | 1
| 수락됨
답변 있음
Check for missing argument or incorrect argument data type in call to function 'integral'.
One way is to use anonymous functions f = @(x) sqrt(2)*x.^3; g = @(theta) 4+2*(sin(theta).^2); a = integral(f, 0, 9); b ...
Check for missing argument or incorrect argument data type in call to function 'integral'.
One way is to use anonymous functions f = @(x) sqrt(2)*x.^3; g = @(theta) 4+2*(sin(theta).^2); a = integral(f, 0, 9); b ...
4년 초과 전 | 1
답변 있음
Plot overlapped points (Matlab 2020a)
Just some ideas: npts = 200; true_value = randn(npts,1); Estimates1 = true_value + 0.01*randn(npts,1); Estimates2 = true_val...
Plot overlapped points (Matlab 2020a)
Just some ideas: npts = 200; true_value = randn(npts,1); Estimates1 = true_value + 0.01*randn(npts,1); Estimates2 = true_val...
4년 초과 전 | 0
| 수락됨
답변 있음
read and use .txt file
There's a lot of extra characters in your text file. % frequency, amplitude and phase str = fileread('draft.txt'); str = st...
read and use .txt file
There's a lot of extra characters in your text file. % frequency, amplitude and phase str = fileread('draft.txt'); str = st...
4년 초과 전 | 0











