Respondida
values of y-axis acceleration's data more than 2 g
That would depend on whether your accelerometer has been in a roller-coaster or flying with the Blue Devils. This question is...

más de 11 años hace | 0

Respondida
Assigning a placeholder variable
your_fun = @(x) x.*exp(-(x.^2) ) + x your_fun(3) Please accept the answer that best solves your problem.

más de 11 años hace | 0

Respondida
The data is not correctly written with CSVWRITE, after 100000 rows
From the documentation: csvwrite writes a maximum of five significant digits. If you need greater precision, use dlmwrite ...

más de 11 años hace | 1

Respondida
Calculation with uint16 values
When you divide an integer, it will produce an integer and just ignore the decimal part. For instance 3/2 will produce 1. If you...

más de 11 años hace | 0

| aceptada

Respondida
Paste Strings to Text File
your_text = cell(10,1); for ii = 1:10 your_text(ii) = {'Lorem ipsum'}; end your_text(10) = {'No!'}; ...

más de 11 años hace | 1

| aceptada

Respondida
Calculate a randomized array with some constraints.
pairs = [1 1; 2 2; 3 3; 4 4]; your_array = zeros(1,20); step_size = 4; numPairs = size(pairs,1); pos = 1:numel...

más de 11 años hace | 0

| aceptada

Respondida
variable to executable code
doc feval

más de 11 años hace | 0

| aceptada

Respondida
How can I label a solution as NaN in a MEX code?
if (some_condition) some_value = 0.0/0.0; %This will produce a NaN end

más de 11 años hace | 0

Respondida
How do you replace duplicate values in an array?
randperm(9,9)

más de 11 años hace | 1

| aceptada

Respondida
Working with Cell Arrays
your_mat = ones([2048,2048,numel(channel1)]; for x=1:length(channel1) level=graythresh(channel1{x}); your_mat(...

más de 11 años hace | 0

Respondida
Standalone (compiled) program reading external files
Maybe something like this: filename = fullfile('/path/to/files','MASTER.csv'); fid = fopen(filename)

más de 11 años hace | 1

| aceptada

Respondida
sum across dynamic field names in structure
This is probably going to be slower than a for loop: a.date = now; a.name1 = 1; a.name2 = 2; a.name3 = 3; a.nam...

más de 11 años hace | 0

Respondida
Why cant't I save an array?
save('ewa.mat', ewa);

más de 11 años hace | 0

| aceptada

Respondida
I want to get and display the results of a problem with 2 decimal digits , already it get me 4 digits , what should do i for get the results just with 2 decimal digits?
format bank rand(10,1) Please provide feedback on the answers you get and accept the one that better solves your problem. ...

más de 11 años hace | 0

Respondida
convert two column matrices into one column matrix
C = [A(:);B(:)] This is a pretty basic question. I recommend you read the "Getting started" part of the documentation.

más de 11 años hace | 1

| aceptada

Respondida
How can I return the signed maximum absolute value of each column of a matrix?
data = -11 + randi(21,10,50); nCol = size(data,2); [your_result idx] = max(abs(data),[],1); toAdd = [0 cumsum(10...

más de 11 años hace | 0

| aceptada

Respondida
Sum of a cell of arrays
%dummy data C = cell(10,1); m = 15; %image size n = 18; numImages = 20; for ii = 1:numImages C(ii) = {ra...

más de 11 años hace | 0

Respondida
In a loop: Operands to the || and && operators must be convertible to logical scalar values
if tetnum<14 tetnum>24 I assume you meant: if (tetnum <14 || tetnum>24) or something similar

más de 11 años hace | 0

| aceptada

Respondida
Why does str2num truncate my number so early?
format long str2num(test_str)

más de 11 años hace | 1

| aceptada

Respondida
how to use "save" matlab
your_data = rand(60000,16); fid = fopen('data.txt','w'); fprintf(fid, [repmat('%f ',1,size(your_data,2)) '\n'], your_da...

más de 11 años hace | 2

Respondida
PLot 3d from 2d data set
doc plot3

más de 11 años hace | 0

Respondida
Size of the array after Huffman Encoding
The performance of encoding algorithms will depend on the structure of the underlying data. The combination of structure/algorit...

más de 11 años hace | 0

Respondida
Supressing messages of the type "(command) will be removed in a future release."
<http://www.mathworks.com/help/matlab/matlab_prog/suppress-warnings.html Yes>

más de 11 años hace | 2

Respondida
Can I draw outside of a figure/axes?
<http://www.mathworks.com/help/simulink/ug/control-an-led-display.html#br13l4n-1>

más de 11 años hace | 0

Respondida
How to generate a single vector of block-consecutive values from 2 vectors of same size without a loop ?
Any particular reason you don't want to use a loop? This is one of those cases where you should use one, if performance is an is...

más de 11 años hace | 2

| aceptada

Respondida
How do I make multiple x axes?
You could try a variation of the below: aH(1) = axes; aH(2) = axes; y1 = rand(10,1); y2 = rand(10,1); x=...

más de 11 años hace | 0

Respondida
How do I plot multiple XY vectors with corresponding Z values on the same plot?
IMO, that's not a very good way of presenting data. It might look pretty, but most of the results are hidden. If you really want...

más de 11 años hace | 0

| aceptada

Respondida
Subset of time series of fixed length?
myTest = @(x) prctile(x,5)>10 & prctile(x,95) < 200; test_mat = hankel(1:10,1:10); test_mat = test_mat(1:sliding_window_...

más de 11 años hace | 0

Respondida
convolution of two signals
You could use the _conv()_ function. It seems to do exactly what you want. conv(x,y) Please read the documentation. d...

más de 11 años hace | 0

Respondida
How do I produce a graph of the slope of a group of data points?
plot(diff(y)); Please read the documentation to see how _diff()_ works. Please accept an answer when your problem has bee...

más de 11 años hace | 0

| aceptada

Cargar más