Réponse apportée
how to define colour in HSV space
rgb2hsv([0 1 0])

presque 13 ans il y a | 0

Réponse apportée
How can I calculate distance between a point and a line in 4D (or space higer than 3D)?
No, there's not, but you can calculate it using the dot product and the norm for any number of dimensions: numDim = 4; A...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Predicting the curve(Graph) among a family of the curve(Graph)
You could interpolate linearly between the two curves: a20=[0.048332 4.591866 9.473681 15.321958 19.962203 24.602355 29.870...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
detecting Excel files without Excel extension
You could always check the <http://www.garykessler.net/library/file_sigs.html file signature>. You would need to read the file a...

presque 13 ans il y a | 1

Réponse apportée
How to determine Empty matrix: 0-by-1 in a cell??
bla = {1:3,[],4} your_logical_result = cellfun(@(x) isempty(x),bla) bla(your_logical_result) = {0}

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Out of memory problem, swap memory hiding
Calling or storing data in a hard drive, even if it is an ssd, is order of magnitudes slower than using the RAM. Considering the...

presque 13 ans il y a | 1

Réponse apportée
How to reverse data normalized with bsx function
your_original_data = bsxfun(@times,ynV,sd1); your_original_data = bsxfun(@plus,your_original_data,mn1); What is the purp...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
Find the maxima in a graph
Sounds like you want the sub indexes (row, column) not the linear indexes. your_data = rand(10,20); [row col] = ind2sub(...

presque 13 ans il y a | 0

Réponse apportée
Maximum decimal and binary values
This function should work function [binStr sign biasExp frac] = my_fun(h) ieee74 = ''; h = num2hex(h); ...

presque 13 ans il y a | 0

Réponse apportée
How to convert radians to degrees?
There is a built in function for that: doc deg2rad But it is rather trivial to implement it yourself: myTrans = @(x) ...

presque 13 ans il y a | 2

Réponse apportée
merge two matrices together
ii = [40 40 40 40 41 41 41 41 42 42 42 42 43 44 43 44 43 45 44 44 44 48 45 49 45 50 49 51 50 51 51 52 ...

presque 13 ans il y a | 1

Réponse apportée
Placing restrictions on spline fits
I don't think you can set a minimum for the y-values, at least not automagically. What you can do, however, is to specify a slop...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
how automatically label multiple outputs in the loop?
x = 1:3; %Creating a vector of values your_result = x.^2; %squaring element by element x(1) x(2) x(3) I would r...

presque 13 ans il y a | 0

Réponse apportée
How change values in n number of matrix?
You could create this function: function [varargout] = change_value(varargin) varargout = cell(numel(varargin)); for ...

presque 13 ans il y a | 0

Réponse apportée
dates missing in time series - how to remove discontinuity
What do you dates look like? If it is something like 800415 (ddmmyy) then there will be a gap at the end of every month and a la...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Filling gaps in time series with Nan
Sounds like a job for _intersect()_: %Generating random dataset: numVals = 2000; all_seconds = 0:30/86400:1; all_s...

presque 13 ans il y a | 3

| A accepté

Réponse apportée
float array to binary string and vice-versa?
I don't exactly understand what you are trying to achieve in Matlab. The code you show is C/C++. Also, there are no pointers in ...

presque 13 ans il y a | 0

Réponse apportée
Out of memory. Type HELP MEMORY for your options.
All possible permutations in a loop: for ii = 1:numel(x1) for jj = 1:numel(x2) for kk = 1:numel(x3) ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
plotting 2d sensor data
your_data = uint16(randi(65536,1000,1)-1); scaled_data = -3000 + round(6000 .* (double(your_data) ./ 65536)); Please acc...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
index out of bounds because size(IC)=[0,1]
Please learn to use the debugger. doc dbstop It could save you a lot of time in the figure and is a very good tool to tro...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Accuracy of numerical integration in Matlab
No, it is not possible. To know exactly how much the answer you get deviates from the true answer, you need to compare to it. In...

presque 13 ans il y a | 0

Réponse apportée
Spliting a date to day, month and year
myDate = '4/2/1923'; mySplitDate = regexp(myDate,'/','split'); myDatevec = cellfun(@(x) str2double(x),mySplitDate)

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to avoid NaN while evaluating a function
If you have the symbolic math tool then you could use variable precision arithmetic. For instance, please try the following snip...

presque 13 ans il y a | 0

Réponse apportée
Font size problem in 2-D plots
title(['\fontsize{20} Look Big' char(10) ... '\fontsize{10} Look small' char(10) ... '\fontsize{20} Mixed_{\fontsize{...

presque 13 ans il y a | 0

Réponse apportée
How can I normalize data between 0 and 1 ? I want to use logsig...
bla = 100.*randn(1,10) norm_data = (bla - min(bla)) / ( max(bla) - min(bla) )

presque 13 ans il y a | 11

| A accepté

Réponse apportée
Problem in plotting confidence interval in a probability plot
I thing there are two problems with your approach. One is that you could simplify your code like this: WL= [ 6.79 6.89 6.38 ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
different output in kmeans
An option is to reset the random number generator to its initial state every time before running your code: rng default % -...

presque 13 ans il y a | 1

Réponse apportée
How to plot data from a binary .FLD file.
All files are binary. Text files are easily understandable by humans after your favorite text editor transforms the ones and zer...

presque 13 ans il y a | 0

Réponse apportée
Function got different results with the same inputs when directly called in MATLAB and called in exported .dll c++ library?
<https://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-0-3-0-2-0-1-not-equal-to-zero> The order in which operation...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to combine two functions in one graph?
hold on

presque 13 ans il y a | 0

Charger plus