Réponse apportée
I have a matrix of 3 variables and want to calculate its Constants value so what should be the CALLING Equation in Custom type in CFTOOL???
You might be going overkill. You could obtain your answer in a much less convoluted way: a = rand(50,1); b = rand(50,1); ...

plus de 9 ans il y a | 0

Réponse apportée
Finding the Y values corresponding to histogram center
Use <http://se.mathworks.com/help/matlab/ref/histcounts.html histcounts>

plus de 9 ans il y a | 0

Réponse apportée
Can someone help me write a code to read data from an XML file into a structured array? I want to plot a graph with the extracted data.
<https://www.mathworks.com/matlabcentral/fileexchange/28518-xml2struct>

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Why are the particles getting off the Torus
Without going through all that code, one thing pops to mind: numerical precision and stability. Computational geometry operation...

plus de 9 ans il y a | 1

Réponse apportée
Plotting a function of determinant values vs n values.
I'm on a one liner spree, and you don't actually need those loops: myFun = @(x) det(bsxfun(@(ii,jj) sqrt(2./n)*sin((pi*(ii...

plus de 9 ans il y a | 0

Réponse apportée
If I have a for loop that plots a line on each iteration, how do I make it plot all of the lines on just 1 graph?
_hold on_ might do the trick. aH = axes; hold on; for ii = 1:5 plot(aH,rand(10,1)); end

plus de 9 ans il y a | 0

Réponse apportée
Plotting data on curvilinear coord projection
It is not clear to me how you want those arrays displayed. If you only want to show the points: geoshow(S.Lat(:), S.Lon(:),...

plus de 9 ans il y a | 0

Réponse apportée
unable to load .txt file. it shows the following error
Maybe you meant: load file.txt

plus de 9 ans il y a | 0

Réponse apportée
How to show a legend consisted of more than one variable
Almost there str = ['the graph is in interval (', num2str(vector(1)), '-', num2str(vector(2)), ') red'];

plus de 9 ans il y a | 1

Réponse apportée
Convert Cells with space entry to an empty cell
a = { '', '', '', 'bla', 'bla'; '', 'bla', 'bla', 'bla', ''} a(strcmp('',a)) = {[]} Please remembe...

plus de 9 ans il y a | 0

Réponse apportée
Mean square error (MSE) and performance in training record not correct?
It appears to be well within the realm of numerical precision. You shouldn't be comparing doubles directly. <http://se.mathwork...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How do I make a contour velocity plot?
<http://se.mathworks.com/help/matlab/ref/quiver.html That wheel was already invented>.

plus de 9 ans il y a | 0

Réponse apportée
Two matrices combination problem
A = ones(2); B = reshape(1:9,3,3)'; C = zeros(size(A,1) + size(B,1)); C(1:2:end,1:2:end) = B; C(2:2:end,2:2:end) = A...

plus de 9 ans il y a | 0

Réponse apportée
Convert cell (each entry is a 3D matrix) to 4D matrix
your_result = cat(4, your_cell_array{:});

plus de 9 ans il y a | 2

Réponse apportée
Are any functions from the optimization toolbox available to Matlab Coder...excluding fminsearch and fzero
<http://se.mathworks.com/help/simulink/ug/functions-supported-for-code-generation--alphabetical-list.html No.>

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Which GCC compiler is supported for code generation in Matlab R2016b?
<http://se.mathworks.com/support/compilers/R2016a/index.html?sec=glnxa64 No.> Might still work if you're lucky.

plus de 9 ans il y a | 0

Réponse apportée
Getting values of 3D matrix via their (x,y) coordinates without using loop
A = rand(5,5,2); x = (1:3); y = (2:4); your_result = cell2mat(arrayfun(@(x,y) reshape(A(x,y,:),1,[]),x,y,'uniformoutput...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Retrieve Both Besides String of Center String
data = {'a', 'b', 'c', 'o', 'm'}; idx = find(~cellfun(@isempty,strfind(data,'o'))); your_result = data(idx-1:idx+1)

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How can I plot a graph on a circumference?
Assuming the circle is centered on [0,0]: angle = 0:0.1:360; displacement = sind(6.*angle + 4); radius = 1; circx ...

plus de 9 ans il y a | 0

Réponse apportée
How to integrate discrete data by Gaussian quadrature method
<http://se.mathworks.com/help/matlab/ref/integral2.html _integral2()_>

plus de 9 ans il y a | 0

Réponse apportée
How to combine cell row into any varible??
your_result = [value{:,:,1:11}];

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
how to generates random numbers ?
<http://www.mathworks.com/matlabcentral/fileexchange/9700-random-vectors-with-fixed-sum Like this.>

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
how to plot the graph showing different data points within restricted boundary of sigma level?
aH = axes; plot(aH,rand(100,1),'k.'); hold on; sigma1 = 0.2; sigma3 = 0.8; plot(aH, aH.XLim, [sigma1, sigma1], 'k-');...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Transform matlab code in c++ code
Depends mainly on two things: # Your willingness to pay (if you don't already have it) and learn to use <http://se.mathworks...

plus de 9 ans il y a | 0

Réponse apportée
Problem in writing geotiff file from EASE-2 grid data from SMAP mission
You could use _proj4fwd_ instead.

plus de 9 ans il y a | 0

Réponse apportée
Is it possible to vectorize for only one input?
v1 = [1, 2, 3]; m1 = [1, 2, 3; 4, 5, 6]; your_result = arrayfun(@(x) sum(v1 > x), m1) Though this is just syntactic sugar ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Problem with legends for multiple entries
legend(h(4),{'your legend'})

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Noise samples of gaussian mixture distribution
*Proof of concept, not the smart way to do it* If this was to be done in an efficient way: # Derive the cdf. # Get a ...

plus de 9 ans il y a | 1

Réponse apportée
Using Ledalab with Mac
Is the directory with the _Ledalab_ script in the Matlab path? Have a look: path If not, add it: addpath('/to/Ledala...

plus de 9 ans il y a | 0

Réponse apportée
How i can change the values of Y axis
gca.XLim = [8.4, 18.6];

plus de 9 ans il y a | 0

| A accepté

Charger plus