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...
5 months 前 | 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:...
5 months 前 | 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 ...
5 months 前 | 0
已解决
Is this matrix orthogonal?
Given a square matrix, a, determine whether it is orthogonal. INPUT: a, a n x n matrix OUTPUT: true or false
5 months 前
已回答
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...
5 months 前 | 3
| 已接受
已解决
Subset Sum
Given a vector v of integers and an integer n, return the the indices of v (as a row vector in ascending order) that sum to n. I...
5 months 前
已回答
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 ...
5 months 前 | 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...
5 months 前 | 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));
5 months 前 | 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...
5 months 前 | 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);...
5 months 前 | 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 ...
5 months 前 | 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...
5 months 前 | 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...
5 months 前 | 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...
5 months 前 | 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)
5 months 前 | 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...
5 months 前 | 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 +...
5 months 前 | 0
已解决
I've got the power! (Inspired by Project Euler problem 29)
Consider all integer combinations of a^b and b^a for the integer values 2 ≤ a ≤ 4 and 2 ≤ b ≤ 5: 2^2=4, 2^3=8, 2^4=16,...
5 months 前
已解决
Make a Palindrome Number
Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...
5 months 前
已解决
Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
5 months 前
已解决
Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...
5 months 前
已解决
Periodic Table 101.
Given the atomic number (z), answer the symbol for that particular element of the <http://en.wikipedia.org/wiki/Periodic_table/ ...
5 months 前
已解决
Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...
5 months 前
已解决
Determine if input is a perfect number
A perfect number occurs whent the sum of all divisors of a positive integer, except the number itself, equals the number. Examp...
5 months 前
已解决
Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...
5 months 前
已解决
Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...
5 months 前
已解决
How many days?!?
Christmas is coming earlier and earlier each year. Thanks to rampant commercialism and Christmas Creep, "The Twelve Days of Chr...
5 months 前











