Community Profile

photo

Robert101


Last seen: nästan 2 år ago Active since 2019

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Using function in a serial code
I have a function shown below: function [ncell,phis,vac,nccel,ccell] = micro_poly_cell(Nx,Ny,ncell,R) format long; phis =...

nästan 2 år ago | 1 answer | 0

1

answer

Question


What does [3, Inf] represents?
sizeA = [3 Inf]; Does it mean 3 rows and infinite colums? In the workspace it shows: sizeA = [3, Inf]. How to interpret it?

mer än 3 år ago | 2 answers | 0

2

answers

Question


How to get convergence in Gradient descent algorithm?
I am trying to implement Gradient Descent Algorithm for linear regression. The X axis representes the year and Y axis the housin...

mer än 3 år ago | 1 answer | 0

1

answer

Question


How to convert this 2D code segment with random number into the FORTRAN code?
Nx = 4 Ny = 4 c1 = 0.12 rr = 0.0001 for i=1:Nx for j=1:Ny D(i,j) =c1 + rr*(0.5-rand); end end It contains random numb...

mer än 3 år ago | 2 answers | 0

2

answers

Question


Area fraction of particles from the image
I have contour plot showing the formation of particles after certain time. I want to know how to calculate the fraction of thes...

mer än 3 år ago | 0 answers | 0

0

answers

Question


Exact value in excel sheet of function
How can i get the exact value in the first place instead of clicking on it and checking it out? The function is given as ...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


How to save the iteration at every time step in this code?
K1 = 3.4; D1 = 1; D2 = 3.5; R1 = 5.0; p1 = 4.0; C1 = 1.0; C2 = 1.0; dt = 0.1; E1 = 1.0; Y1 = 1.0; for i=1:1000000 ...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


My code is generating this error " Index exceeds matrix dimensions" . Apparently it looks fine. Still can not figure out the problem.
c1 = 0.1; c2 = 0.0001; L = 5.0; M = 0.04; P1 = 1.0e-2; P2 = 1.0e-5; for i=1:64 for j=1:64 C1(i,j) = c1 + P1*(...

mer än 4 år ago | 1 answer | 0

1

answer

Question


How to solve this equation with two variables in one equation ?
A = 1; B = 1; for n=0.0:0.1:1.0 for c = 0.0:0.1:1.0 c0 = 1.13e-4; w = -A*(c-c0)^2*(n^4-3*n^2+2*n)+B...

mer än 4 år ago | 1 answer | 0

1

answer