Beantwortet
What is the easiest way to find a cyl <-> cyl intersection?
Lets assume both of your cylinders are of radius r1 and r2. You can represent a cylinder in cartesian coordinates (x,y,z) using...

mehr als 12 Jahre vor | 0

Beantwortet
Help me about the code for GUIDE of Matlab ?
You can delete the _Callback functions if you are not using it and that will not give any errors. However you should not delete ...

mehr als 12 Jahre vor | 1

| akzeptiert

Beantwortet
What is the most efficient way: load or set global variable
If you don't change the values for promat inside the function, Matlab will not be allocating a new memory for promat. As long a...

mehr als 12 Jahre vor | 2

| akzeptiert

Beantwortet
I want to find the initial parameters for nlinfit, but I do not calculate it!
I think this problem is suffering from a non-unique solution scenario. You are trying to fit 6 data points with 3 coefficient fu...

mehr als 12 Jahre vor | 0

Beantwortet
Please help: Output as 'text' file in 'for' loop not moving to new line - not the standard '\r\n' fix
I don't see the loop. If the loop is applied on the code you gave here, it will produce only the last line. In every loop, you ...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Help me about the Static text og GUIDE ?
No, you can't using the default matlab static text. The verticalAlignment is disabled. However, this might something that you sh...

mehr als 12 Jahre vor | 2

| akzeptiert

Beantwortet
Create a random matrix?
@Roger: This is a very interesting approach and got me curious. However I think this will not satisfy the random number scenario...

mehr als 12 Jahre vor | 0

Beantwortet
Using logical operators within if statement
I think you need to use or (||) .. instead of &

mehr als 12 Jahre vor | 1

Beantwortet
I want to create a random matrix?
okay .. an approach would be rejection method .. be careful .. for extremely large matrix this will be a bad idea .. tmp1= rand...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
I want to create a random matrix?
write down all possible ways to get 3 or less than 3 using integers 0-4 like [1 0 0 0 0] [1 1 0 0 0] etc.... pick one of the ma...

mehr als 12 Jahre vor | 0

Beantwortet
How to make my GUIDE look more professional ?
what do you mean its not professional? is it functioning? take a look at this - http://www.matlabtips.com/practical-considerati...

mehr als 12 Jahre vor | 1

Beantwortet
Problem in fmincon solver
what's the exitflag?

mehr als 12 Jahre vor | 0

Beantwortet
How to get row index of certain values in a vector
index = find(obj.GanttM(:,2)==i) this will do it!

mehr als 12 Jahre vor | 2

Beantwortet
loop executing more then the given iteration.
First try this function <http://www.mathworks.com/help/stats/combnk.html> This might be a little help for what you trying to ...

mehr als 12 Jahre vor | 0

Beantwortet
reverse of fnval: evaluate the variable for given value of function
If you have the plot in matlab, that means you must have (x,f(x)) data to begin with. If this is the only data set you are looki...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
loop executing more then the given iteration.
There are 2 loops. Loop y and loop z. The only time switch is activating is for y = 1 ( I dont understand the purpose of that...

mehr als 12 Jahre vor | 0

Beantwortet
Bitwise addition if bit is 1.but not gettin answer.
The question is unclear. Can you elaborate? One issue I see is that q(i) == '1' and not q(i) == 1. As q is a string and not a...

mehr als 12 Jahre vor | 0

Beantwortet
Help me about GUI in Matlab
Here is a tutorial example - This might help you <http://www.matrixlab-examples.com/matlab-gui.html>

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
how can write XOR function in MATLAB
http://www.mathworks.com/help/matlab/ref/xor.html

mehr als 12 Jahre vor | 0

Frage


Finding a random non-zero location in a vector
I have a vector (Rs, size n x 1) which has few zeros and rest nonzero values. I need to randomly find a index to a nonzero value...

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How do I rectify this 'out of index' error?
The error is as Walter mentioned. If you want to stick to the format you showed in your post, the solution is also included in t...

mehr als 12 Jahre vor | 0

Frage


Small Matrix (30x1) using significant time/memory to update in a loop
I have a small vector Rv (30x1) which need to be updated in every loop. Before going in the loop, I have initiated the vector as...

mehr als 12 Jahre vor | 1 Antwort | 1

1

Antwort

Beantwortet
How to export variables in mat file to excel?
I think you are trying to get average value for velocity. If that's correct simply use mean(HistStruct.velocity) This w...

mehr als 12 Jahre vor | 0

Frage


Changing array size while using Find Function
The matlab answers have been very helpful to me and I am grateful to all you guys. This is my first question and I hope you can ...

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort