Feeds
質問
normalize hist3 plot
Is it possible to normalize a hist3 plot so the vertical axis does not have counts but rather probabilities so the volume under ...
5年以上 前 | 1 件の回答 | 0
1
回答回答済み
vector to struct without loop
Thanks for both suggestions, I have it working now. Out of curiosity, how would I go the other way around? If I had the the ...
vector to struct without loop
Thanks for both suggestions, I have it working now. Out of curiosity, how would I go the other way around? If I had the the ...
8年弱 前 | 0
質問
vector to struct without loop
I have two vectors, one with ids and another with information for each id. For each id, the vector with information has, potenti...
8年弱 前 | 3 件の回答 | 0
3
回答質問
Interpolating multidimensional output and input
Hi, I have a function that uses a three-element vector as input and gives a two-element vector as output. From evaluating the...
8年以上 前 | 1 件の回答 | 0
1
回答質問
Plot 3d implicit function and inequality
Hi, I need to plot a 3d equation and inequality, with some constraints. The equation and inequality are the following (u...
約9年 前 | 1 件の回答 | 0
1
回答質問
strange behavior of fminsearch
Hi, I'm solving a simple optimization problem using fminsearch and fminsearch is behaving in a strange way, and I don't know ...
9年以上 前 | 1 件の回答 | 1
1
回答質問
MATLAB R2014a in Ubuntu 14.04 doesn't recognize NVIDIA GeForce GTX770
Hi, I'm running MATLAB R2014a (with parallel computing toolbox) on Ubuntu 14.04, and I have a GeForce GTX770 GPU with computi...
10年以上 前 | 2 件の回答 | 0
2
回答質問
Bootstrap with observations not being rows
Hi, I'm doing an optimization routine and now I need to use the bootstrap to compute the standard errors. However, in my data...
10年以上 前 | 1 件の回答 | 0
1
回答質問
find lagged values of variables
Hi, I have a matrix of data in which and observation is defined by i (people), j (alternatives), t (time). For each i, j, an...
10年以上 前 | 0 件の回答 | 0
0
回答質問
Sparse knonecker product of large and several matrices
Hi, I'm trying to create a sparse kronecker product without actually generating the kron product and then generating the spar...
10年以上 前 | 1 件の回答 | 0
1
回答質問
How to create a matrix containing the diagonal matrix of another one?
Hi, I have a diagonal block matrix and I would like to create another matrix that contains only the blocks of the diagonal (e...
10年以上 前 | 1 件の回答 | 0
1
回答質問
parfor with wrong indexing. Trying to assign output to parts of vector
Hi, I'm trying to run a parfor loop, but I don't know how to index one of the variables. The code is the following tt=da...
10年以上 前 | 1 件の回答 | 0
1
回答質問
Vectorize and use parfor in a nested loop with five levels
Hi all, I'm working on an application that, for now, requires computing a nested loop with five levels. I'm trying to vectori...
11年以上 前 | 1 件の回答 | 2
1
回答回答済み
Wrong way to index: Index exceeds matrix dimensions
Thanks. Yes, the max of Z is greater than the number of elements in Y, which generates the message. Is there any way to overcome...
Wrong way to index: Index exceeds matrix dimensions
Thanks. Yes, the max of Z is greater than the number of elements in Y, which generates the message. Is there any way to overcome...
11年以上 前 | 0
質問
Wrong way to index: Index exceeds matrix dimensions
Hi, I'm trying to use indices to expand a vector but I keep getting an error message and I don't understand why. In particula...
11年以上 前 | 3 件の回答 | 0
3
回答質問
common random number when satisfying certain conditions
Hi all, I'm trying to generate a matrix of random numbers that has to satisfy the restriction that when certain conditions ar...
11年以上 前 | 1 件の回答 | 0
1
回答回答済み
how to use accumarray over a matrix avoiding a loop?
Thanks for your help. I will check which of the three alternatives is better for my data.
how to use accumarray over a matrix avoiding a loop?
Thanks for your help. I will check which of the three alternatives is better for my data.
12年弱 前 | 0
質問
how to use accumarray over a matrix avoiding a loop?
Hi, I want to sum elements of a matrix according to an index. If instead of the matrix I had a vector, I could use accumarray...
12年弱 前 | 4 件の回答 | 0
4
回答質問
Showing text output in GUI instead of in the Command Window
Hi, I'm working with a GUI that I'll compile to be a stand along Windows executable to be shared with people that don't have ...
12年弱 前 | 1 件の回答 | 0
1
回答質問
Product of probabilities by group
Hi, I have matrix that contains in the first column a group identifier and in the second column a probability. I want to gene...
12年弱 前 | 3 件の回答 | 0
3
回答質問
Fmincon with multiple linear constraint of multidimensional array
Hi, I'm solving a minimization problem that requires a variable that is a function of parameters to be positive. However, thi...
12年弱 前 | 0 件の回答 | 0
0
回答質問
Remove all fields from a struct except if
Hi, I have a struct mk with fields mk.id, mk.x and mx.z. There are 800 of each, so I have mk(1).id, ..., mk(800).id, and the ...
12年以上 前 | 1 件の回答 | 0
1
回答質問
Log file of minimization done in parallel using batch
Hi, I'm working on a problem that has an outer minimization that searches over one set of parameters, and an inner minimizati...
12年以上 前 | 1 件の回答 | 0
1
回答質問
Delete particular structure arrays
Hi, I'm generating some data in a random way, creating different structure arrays. Consider the following example with 3 diff...
12年以上 前 | 1 件の回答 | 0
1
回答質問
Expand vectors of matrix, but a different number of times each vector
Hi all, I have the following problem. Consider a matrix of the form Z =[1 0 0 0; 1 0 0 0; 1 0 0 0; 0 0 0 1; 0 0 0 1]; ...
12年以上 前 | 2 件の回答 | 0
2
回答回答済み
parfor loop variable cannot be classified
by mistake...but without the semi-colon I get the same error message. I did a couple of changes to see what is causing the er...
parfor loop variable cannot be classified
by mistake...but without the semi-colon I get the same error message. I did a couple of changes to see what is causing the er...
12年以上 前 | 0
質問
parfor loop variable cannot be classified
Hi all, I'm trying to use parfor instead of for to deal with 3 minimizations (for now, it should increase a lot) that are indep...
12年以上 前 | 2 件の回答 | 0
2
回答質問
Create a vector summing different elements from another vector
Hi, I'm trying to do the following. Suppose you have a vector A=ones(10,1) and another vector id=[1 1 1 2 2 3 3 3 3 3]'. I wo...
12年以上 前 | 1 件の回答 | 0