photo

Zach Dunagan


Aktiv seit 2017

Followers: 0   Following: 0

Statistik

  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Beantwortet
Fitting a lines to a scatter plot?
Here is my code... How would I fit a trend line to this scatter plot? % clear variables and windows clc, clear, clear al...

fast 7 Jahre vor | 0

Frage


Fitting a lines to a scatter plot?
Hello, I am taking a course with a ton of data analysis. I switched over to Engineering Equation Solver just because of the g...

fast 7 Jahre vor | 5 Antworten | 0

5

Antworten

Frage


Do you see an error?
Do any of you see a problem with the Matlab code? The output from Python and Matlab are the same except 'wps'. The outputs fo...

fast 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Do we have any proficient users in Python?
I've been working on converting Python to Matlab for awhile now. I have everything plotting, saving, and outputting. However, th...

fast 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How to save figures directly to a folder without having them display?
I have a set of plots, in other words figures, that need to be saved directly to the folder. I have the code set up where it sav...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Do you see any errors?
I am nearly finished with the code I am converting just trying to figure out a plot and then I need to figure out how to save mu...

fast 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Reshape won't work for my application. Why?
Converting a line of Python code to matlab. Here is the Python. Fy_bern=np.sum(np.reshape(forceDist,(numPanels,1))*(np.s...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to save multiple plots to a single folder?
Here is the path to the folder. filepath = 'C://Users//Zach Dunagan//Desktop//Frame//' This is what I have attempted. ...

fast 7 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


Help converting Python to Matlab
For now I will start with this single line of code. Python dPSto1[:,n]=1/2*rho*(np.reshape((Uinf**2-tangVelFoil**2),(num...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Title with multiple outputs
<<https://www.mathworks.com/matlabcentral/answers/uploaded_files/95333/mulitple%20output%20example.JPG>> Here is my code: ...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Help finding error in Matlab code
I have two sets of code, one in Python and the other in Matlab. I am converting Python to Matlab, but ran into a error that I am...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


if else statements with asking user for input
My code is attached. Is there a way to only have one prompt at the beginning of the if else statements, instead of 2? I have 4 d...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Converting Python to Matlab
Here is my Python code... import numpy as np import matplotlib.pyplot as plt import copy def SourceDis...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
Converting Python to Matlab
How would I insert zeros in the diagonal line of these 128 x 128 matrices? nSource = -(sin(theta-transpose(theta)))*ups + (...

etwa 7 Jahre vor | 0

Frage


Converting Python to Matlab
Spent a few hours on trying to figure out why the outputs are different, no luck. Python and Matlab are in a txt file along with...

etwa 7 Jahre vor | 3 Antworten | 0

3

Antworten

Beantwortet
Stumped again... Converting Python to Matlab
The only value that appears is the last one in the array. xp(66:end) = flipud(xp(1:numPanels/2)); yp(66:end) = -flip...

etwa 7 Jahre vor | 0

Frage


Stumped again... Converting Python to Matlab
Here is the bit of Python code I am trying to convert to Matlab. code: # thetas for each panel in global frame theta=n...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Help me with indexing please?
Trying to convert Python to Matlab. Below is the Python code along with the output. import numpy as np import matplotlib...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to match initial index?
I am very close to getting the index in Python to match with Matlab. Here is the output of Python... 0.06 0.058125 0.056...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to add to index in for loop?
I am converting Python to Matlab. Here is Python code. # collocation points xc=np.zeros((numPanels,1)) yc=np.zeros((nu...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to assign negative and positive values to specific numbers in array?
How would I flip the signs in the array? a = xp', where 'a' is the array. ans = 0.0581 0.0562 0.0544 ...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort