Community Profile

# Alex Hanes

Last seen: Today Active since 2022

#### Content Feed

View by

Matlab Matrix calculation coming wrong
In Line 65, you are using mrdivide (/), when it seems you are trying to element-wise division using rdivide (./). mrdivide solve...

3 maanden ago | 0

How to store the output of multiple for loops in an empty matrix in a particular order?
After each iteration of your for loop over i (for i=0:1:3 ... ), you replace the array, TT, that stores everything sequentially....

3 maanden ago | 0

| accepted

Unable to convert image back to time domain using IFFT!!
The ifft() and ifftshift() function do not commute. Look at the series of steps you took (working outwards): Apply fft Apply f...

3 maanden ago | 0

How do I plot DFT and iDFT without using libraries
MATLAB’s <https://www.mathworks.com/help/matlab/ref/fft.html#buuutyt-11 FFT function> gives you the definition of the discrete F...

3 maanden ago | 0

Vector image export for Adobe Illustrator
You can use the <https://www.mathworks.com/help/matlab/ref/print.html print> function. The documentation lists the vector and bi...

3 maanden ago | 0

| accepted

merge 12 rows in 12 matrices to one matrix
I'll define some fake data: nMonths = 12; dailyRF = rand(365,55); % fake data array idxDays = [31; 28; 31; 3...

3 maanden ago | 0

Trying to form a large matrix from 1 small matrix
If I’m following correctly, the following code should get you in the right direction: k_e = 2*ones(4,4); % place-holder for ...

3 maanden ago | 0

| accepted

How to rotate the unit cell in crystal?
You can use quaternions to rotate about an arbitrary axis in 3-dimensions. The quatrotate is capable of performing a rotation of...

3 maanden ago | 0

| accepted

GA model is not reproducible.
Your function tolerance is smaller than numerical precision by 14-15 orders of magnitude. See <https://www.mathworks.com/help/ma...

3 maanden ago | 0

I’ve attached task and attempt. I’m not sure how to make it work/ do the fitting routine.
Checking out MATLAB’s documentation for <https://www.mathworks.com/help/optim/problem-based-approach.html Problem-Based> solvers...

3 maanden ago | 0