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

circa 12 anni fa | 0

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

circa 12 anni fa | 1

| accettato

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

circa 12 anni fa | 2

| accettato

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 2

| accettato

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

circa 12 anni fa | 0

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

circa 12 anni fa | 1

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

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

circa 12 anni fa | 1

Risposto
Problem in fmincon solver
what's the exitflag?

circa 12 anni fa | 0

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

circa 12 anni fa | 2

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

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

circa 12 anni fa | 0

| accettato

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

circa 12 anni fa | 0

Domanda


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

circa 12 anni fa | 1 risposta | 0

1

risposta

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

circa 12 anni fa | 0

Domanda


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

circa 12 anni fa | 1 risposta | 1

1

risposta

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

circa 12 anni fa | 0

Domanda


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

circa 12 anni fa | 1 risposta | 0

1

risposta