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

12 years ago | 0

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

12 years ago | 1

| accepted

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

12 years ago | 2

| accepted

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 2

| accepted

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

12 years ago | 0

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

12 years ago | 1

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 1

Answered
Problem in fmincon solver
what's the exitflag?

12 years ago | 0

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

12 years ago | 2

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

Question


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

12 years ago | 1 answer | 0

1

answer

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

12 years ago | 0

Question


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

12 years ago | 1 answer | 1

1

answer

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

12 years ago | 0

Question


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

12 years ago | 1 answer | 0

1

answer