Respondida
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 ...

casi 11 años hace | 1

Respondida
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...

casi 11 años hace | 2

| aceptada

Respondida
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; ...

casi 11 años hace | 0

| aceptada

Respondida
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(...

casi 11 años hace | 1

| aceptada

Respondida
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]; ...

casi 11 años hace | 0

Respondida
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})

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 9

| aceptada

Respondida
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 ...

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 0

| aceptada

Respondida
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...

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 1

| aceptada

Respondida
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 ...

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 1

| aceptada

Respondida
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)...

casi 11 años hace | 8

| aceptada

Respondida
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...

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 0

| aceptada

Respondida
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: ...

casi 11 años hace | 1

Respondida
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...

casi 11 años hace | 1

| aceptada

Respondida
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: ...

casi 11 años hace | 0

| aceptada

Respondida
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...

casi 11 años hace | 0

Respondida
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 ...

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 0

Respondida
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 ...

casi 11 años hace | 0

| aceptada

Respondida
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...

casi 11 años hace | 0

| aceptada

Respondida
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...

casi 11 años hace | 2

Respondida
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...

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 0

| aceptada

Respondida
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) ...

casi 11 años hace | 1