Réponse apportée
AMD vs Intel CPU for Matlab Computation Time
Generally when it comes to mathematical computing the AMDs are the preferable card. While this is a judgement decision as I do ...

plus de 11 ans il y a | 1

Réponse apportée
How do I specify stderr when using bootci to compute bootstrap studentized confidence interval?
It is not exactly clear what you are trying to do as you introduce x without explaining what it is. Assuming that you want to...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
generate random binary matrix under a condition
m = 5; n = 6; A = zeros(m,n); for k = 1:n c = randi([0,m]); if c > 0 A(c,k) = 1; ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Generate random circles in the square box with different diameters
If you have k circles, then you can create three different areas (and thus different diameters) using: k = 30; X = rand(...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Error using vertcat (dimension of matrices concatenated are not consistent)
Yes. _theta_ is a vector and so therefore _Z0_ is a vector of the same length. Then the error line: Ttemp = [1 0; Z0 1]; ...

plus de 11 ans il y a | 0

Réponse apportée
how to label plot axes with index from a cell array of strings
label = strcat(root,subscripts); xlabel(label{1}) ylabel(label{2}) zlabel(label{3})

plus de 11 ans il y a | 0

Réponse apportée
Find and display intersections using fzero
If f(x) = g(x) then f(x) - g(x) = 0. So we need to define h(x) = f(x) - g(x) and find where h(x) = 0. This is exactly what fze...

plus de 11 ans il y a | 9

| A accepté

Réponse apportée
Single function like stepinfo but for general stats?
Yes. There is a function named _grpstats_ in the Statistics Toolbox which allows you to get multiple statistics. This function ...

plus de 11 ans il y a | 0

Réponse apportée
When I am running following K-means code ... it gives me an error as "Normalization....." Please help me how to run this code.
Please format your code. This is unreadable. <http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-quest...

plus de 11 ans il y a | 0

Réponse apportée
How to stop script from displaying results in the Editor window?
I notice a diary off at the end of your script, this implies that you have turned the diary on at the beginning. You may want t...

plus de 11 ans il y a | 0

Réponse apportée
fixiing a component of input vector in fmincon
There are multiple options for this (one is to simply fix it within your objective function). The other is to use your equality...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Merging multiples csv files in Matlab-R2014b
Presumably you would want to use the _csvread_ function. If all of the files are in the same directory, then set that as your w...

plus de 11 ans il y a | 0

Réponse apportée
Error when using dos to open firefox browser
& is a special character in batch scripting. You need to pass in the URL in quotes and pass an empty quote in front of it for t...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
How do I deal with the following error "??? Subscripted assignment dimension mismatch" occuring in line 32 of the following code..
It is on this line that you have an error: x(2,(i+1))=x(2,i)+(d*dx2); The issue is dx2 is a 1-by-200 double vector. You ...

plus de 11 ans il y a | 0

Réponse apportée
grpstats flexibility for additional functions
If you look at the documentation the input variable *whichstats* can be a function handle. So for your example of the population...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Setting Data in a GUI Table
Use the set command: f = figure; d = randn(10,3); % Make some random data to add t = uitable(f); set(t,'Data',d)...

plus de 11 ans il y a | 8

| A accepté

Réponse apportée
How does one find eigenvalues of a 50 by 50 tridiagonal matrix, with certain conditons?
Is x a scalar or a vector? If it is a vector then you will get a dimension mismatch error as you try and assign a vector to a s...

plus de 11 ans il y a | 0

Réponse apportée
Fill the interior of a cylinder surface - SURF - generated by parametric equations
If you are trying to just put anything in that location you can do the following to place circles there. First create a meshgri...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to calculate indefinite integral?
First off the answer is -cos(2*x-3)/2 + C. The two statements are equivalent up to a constant. Using the half angle identity: ...

plus de 11 ans il y a | 1

Réponse apportée
How to delete a row from a Financial Time Series?
tsobjkt = tsobjkt([1 3:end]); % Just overwrite it with second obs removed <http://www.mathworks.com/help/finance/using-ftstoo...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
how to fit a trend line in plotyy ?
You could use: p = polyfit(y,data1,n); % looks like you want n=1 in your case p contains the coefficients of the line: ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to concatenate two matrices in a loop?
n = 10; % Change n as necessary z = zeros(5,2*n); % pre-allocate space for ii = 1:2:2*n-1 x = rand(5,2); % Just t...

plus de 11 ans il y a | 0

Réponse apportée
How to maniplulate data in one array if conditions are met in another array?
You do not want to use "==" on textual data. Look at strcmp() or strcmpi(). Also, in MATLAB you can say if condition ...

plus de 11 ans il y a | 0

Réponse apportée
Output argument "cost" (and maybe others) not assigned during call to "C:\Users\NIck\Documents\MATLAB\calcCall.m>calcCall".
In the function you expect the variable called tod to assume one of the values in {'day','evening','night'}, along with alternat...

plus de 11 ans il y a | 0

Réponse apportée
Wind speed ARMA simulation
You have a mean zero process with Normal errors and no presample response, so you are essentially starting your prediction with ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Problem with the legend for the multiple axes.
The axes legend is a child of the axes and therefore it does not know about the line on the other axes. One thing you consider...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Neural Network program problem in classification
Just looking at this briefly, you have multiple output classes but only 1 class that is being used for training data. Therefore...

plus de 11 ans il y a | 2

Réponse apportée
how can i plot data of different types using matlab plot(x,y) ?
If your version is 2014a or less then you can use (assuming your cell array is named 'x') % This converts date strings to M...

plus de 11 ans il y a | 0

Réponse apportée
what is the output of kruskalwallis?
I am not sure what "set of values" you are looking for. The output from the call: p = kruskalwallis(X) is simply the p v...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to find the variable by cell array contents
Assuming that Cargo_age_bulk_freq is a numeric row vector of length 9, then we can do the following >> myCell{2,10}(2,2:end) ...

plus de 11 ans il y a | 1