Community Profile # Joshua

Last seen: 7 Monate vor Aktiv seit 2017

#### Statistiken

• • Abzeichen anzeigen

#### Content Feed

Anzeigen nach

Beantwortet
How do I plot this E= (|I|^2)/8π^2[costheta-costheta^2]/(2).
I was a little confused by what belonged in the denominator and numerator, along with what "I" is (I took it to be the imaginary...

etwa 6 Jahre vor | 0

Beantwortet
How can I get the wall-clock time during my simulation, once an entity reaches a certain block?
Is this what you are looking for? It gives you the current time in seconds from the start of the day. You could modify it to sui...

etwa 6 Jahre vor | 0

Beantwortet
How to efficiently arrange a FOR-LOOP if we have two condition with different nValue
I think this answers your first question at least. Might take care of the second question as well since there is just one loop n...

etwa 6 Jahre vor | 0

Beantwortet
How to combine multiple excel files into one file with data in separate columns?
This is a bit complex, but worked for two random excel files. You can simplify if the two columns in each excel file are always ...

etwa 6 Jahre vor | 0

Beantwortet
How do you integrate a constant?
theta = 0.01305 miu = 0.0546 const = @(x) tan(theta + miu)+0*x r = integral(const,0,1)

etwa 6 Jahre vor | 3

| akzeptiert

Frage

Why do certain line markers show up faded when saving high resolution images using print?
I am saving MATLAB figures as high resolution .png files to use in a paper. Version is R2016a. The markers for triangles, square...

etwa 6 Jahre vor | 1 Antwort | 0

### 1

Antwort

Beantwortet
Slicing a 3d cube-like surface with a plane
Assuming that you have the cube shaped object as a list of coordinates, you could define the plane as an equation, and then chec...

etwa 6 Jahre vor | 0

Beantwortet
How to find if graph is connected
I think this is what you are looking for. The line with the variable 'con' is not really necessary, but if you need to reference...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
What function (if any) can I use to simplify symbolic equation in terms of another variable?
If you define your variables using the 'syms' function, you can create equations that will simplify. For example, the code ...

mehr als 6 Jahre vor | 0

Beantwortet
Counting the number of steps taken by the sorting algorithm
X = [9 2 5 7 3 8 1 4 6 0 -2 -7]; n = length(X); numSteps=0; for i=1:n-1 A=X(i); for j=i+1:n; if X(...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
Subscript indices must either be real positive integers or logicals.
I am not really sure what BT is, but depending on your values of K1, K2, and L, it probably won't be an integer. For example, wi...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to solve equations with possible values for variables?
This is not a very elegant solution, but it works. clear clc syms a1 a2 a3 f=symfun(4*a1+3*a2+2*a3,[a1,a2,a3]) ...

mehr als 6 Jahre vor | 0