photo

Rachel Dawn


Last seen: 6개월 전 2018년부터 활동

Followers: 0   Following: 0

통계학

  • Thankful Level 2
  • Thankful Level 1

배지 보기

Feeds

보기 기준

질문


How to convert Matlab cell array into Python numpy array?
In matlab, I generate a random # of images of the shape (130,100) and save them one by one in a cell array. I then need to impor...

대략 2년 전 | 답변 수: 1 | 0

1

답변

질문


How to convert Matlab Cell Array into Python Numpy Array?
In matlab, I generate a random number of images, each of the shape (130,100). In this case, the number of images generated was 9...

대략 2년 전 | 답변 수: 1 | 0

1

답변

질문


How to output maximum displacement from this topology optimization function?
I'm using this 'top99neo' topology optimization code to generate structures: top99neo . The code generates a compliance value,...

대략 2년 전 | 답변 수: 0 | 0

0

답변

질문


How can I smooth out the voids/holes created with topology optimization algorithm?
I'm using this 'top99neo' topology optimization code to generate the following structures: top99neo As talked about in the pape...

대략 2년 전 | 답변 수: 1 | 0

1

답변

질문


Matlab function (fsparse) from github produces an error- why?
So, I'm calling the function "top99neo.m" from this research paper: https://www.topopt.mek.dtu.dk/Apps-and-software/New-99-line-...

대략 2년 전 | 답변 수: 1 | 0

1

답변

질문


Plotted image is clear but saved image is blurry- why?
I'm using the 99 line topology optimization code (found here -click the link "top.m"). When I run the following code in a sepa...

2년 초과 전 | 답변 수: 2 | 1

2

답변

질문


Why does modified 99 line topology optimization code outputs blurry images?
Hello, So, I modified the 99 line topology optimization code found here , so that it has the following boundary conditions (see...

2년 초과 전 | 답변 수: 0 | 0

0

답변

질문


How to generate a matrix of random decimal values from -1 to 1?
I want to generate a 8x10 matrix full of random decimal values from -1 to 1, each with EXACTLY 6 decimal places (i.e 0.523483, -...

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to convert "64x128 single" into "64x128 double"?
I imported an array from python with this shape: (5, 25, 64, 128, 1) It's 5 sets of 25 images that are 64x128. I tried plotting ...

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to define multiple constraints for fmincon?
Hi, I'm trying to minimize the formula below. I've done most of the code except I can't quite figure out how to account for the ...

거의 4년 전 | 답변 수: 1 | 0

1

답변

질문


How to convert a matrix into a vector that has each row as an array?
For example, say that I have this matrix: [a b c d; e f g h; i j k l] To use in python (and to save as .npy), I need the foll...

거의 4년 전 | 답변 수: 2 | 0

2

답변

질문


Error when calling a jupyter notebook file from matlab
So, I'm trying to run a jupyter notebook file from a matlab script: status = system("runipy K-meansCBeam.ipynb") *runipy i...

대략 4년 전 | 답변 수: 1 | 0

1

답변

질문


How can I run a jupyter notebook script from matlab?
I already tried running matlab from jupyter using Oct2Py but it didn't work (error after error). So, I'm wondering if I can use...

대략 4년 전 | 답변 수: 1 | 0

1

답변

질문


How to convert image file name "1.jpg" into a string or # in a list, list= [1]
SIMPLE QUESTION: How to convert a image file name "1.jpg" into a string or # "1"? Ignore what's below (unless you have the time...

대략 4년 전 | 답변 수: 1 | 0

1

답변

질문


How to save images from for loop to use for machine learning algorithm?
I have a for loop that generates a different image each time it loops. I want to save each of these images to input them into a...

대략 4년 전 | 답변 수: 1 | 0

1

답변

질문


How to save each image generated in a for loop?
for i=1:20 volume=randi([2 10], 1,1) location=randi([10 100], 1, 1) imagegenerator(volume,location) end ^...

대략 4년 전 | 답변 수: 2 | 0

2

답변

질문


Unrecognized function or variable 'phload.'
numdesigns=5 nelx=30; nely=30; for i=1:numdesigns volfrac=round((.3+(.8-.3)*rand(1,1)),1); %random # from .3 to .8 ...

대략 4년 전 | 답변 수: 1 | 0

1

답변

질문


How to automatically add/subtract lines of code into a matlab function for several iterations?
So, I have this topology optimization function (models a beam problem with supports/loads on it). It takes 5 input variables a...

대략 4년 전 | 답변 수: 0 | 0

0

답변

질문


How to fit a lorentzian function to this raw data?
My research mentor asked if I could help him curve fit the Lorentzian to some raw data. Disclaimers: 1) I have no experience wi...

거의 6년 전 | 답변 수: 0 | 0

0

답변

질문


Simpson's Rule to find total work
If I'm given time=[0,#,#,#,#,#] and velocity=[#,#,#,#,#,#] and Force=[#,#,#,#,#,#], how could I use Simpson's rule to find t...

6년 초과 전 | 답변 수: 0 | 0

0

답변

질문


Trapezoidal rule to find total work?
I'm given 6 values for time, Force, and velocity. And I'm told to find total work with trapezoidal rule. (first time value is ze...

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Least squares Exponential fit using polyfit
Let's say I'm given x=[11,60,150,200] and y=[800,500,400,90] These are just random numbers (but imagine the solution is in the ...

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Why can't I put two equations in one function file?
function a,b=myfunction(x) a= @(x) 5-5*exp((1/3)*x) + (16- x^2)^(1/2) b= @(x) (-5/3)*exp((1/3)*x) - (16- x^2)^(-1/2) ...

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


bisection method disadvantage?
So, I wrote code for a function to find its roots using the bisection method. I used initial guesses x=4 and 6, knowing that the...

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


false position method to find zeros, not plotting zeros
Can someone tell me why this code is not finding/ plotting the roots for my function? I created a plot for function. Then, I wr...

6년 초과 전 | 답변 수: 0 | 0

0

답변

질문


function that accepts vector
Can someone explain why I must use ".^" in the first function but then ".*" in the second? (for both to accept vectors and scala...

6년 초과 전 | 답변 수: 0 | 0

0

답변

질문


Function won't accept vector
function result = g(x) result= (2*x*exp(cos(6*x))*exp(-x)) + 15 " Error using * Inner matrix dimensions must agree." ...

6년 초과 전 | 답변 수: 2 | 0

2

답변

질문


bisection method error between approximation and actual root
Does anyone know what this question is asking? "How many iterations of the bisection would be needed to ensure that the error b...

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


subscript indices error with function file (bisection method)
function result=guess(x) xleft=x(1,1); xright=x(1,2); f(x)= x.^3 - 4.9*x.^2 +6.76*x-2.013 if f(xleft)*f(xright)<0 ...

거의 7년 전 | 답변 수: 2 | 0

2

답변

질문


Determine if valid initial guess for closed numerical method
If I'm given a function f(x), how can I determine whether say [0 1] or [1,2 ] are valid initial guesses for a closed numerical m...

거의 7년 전 | 답변 수: 1 | 0

1

답변

더 보기