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

quasi 11 anni fa | 1

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

quasi 11 anni fa | 2

| accettato

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 1

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 9

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 1

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 1

| accettato

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

quasi 11 anni fa | 8

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 1

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

quasi 11 anni fa | 1

| accettato

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 2

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

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

quasi 11 anni fa | 1