Gelöst


Solve an ODE: draining tank
Write a function to compute the time to drain a cylindrical tank of diameter from an initial level to a level . The outflow oc...

mehr als 2 Jahre vor

Gelöst


Compute piezometric head in a leaky confined aquifer
Problem statement Write a function to compute the piezometric head in a leaky confined aquifer and the position of a groundwat...

mehr als 2 Jahre vor

Gelöst


Compute the water table elevation in an unconfined aquifer with recharge
Problem statement Write a function to compute the water table elevation above the bottom of the aquifer and the position of a ...

mehr als 2 Jahre vor

Gelöst


Compute the Sisyphus sequence
A recent article in the New York Times featured the Online Encyclopedia of Integer Sequences, founded by Neil J.A. Sloane. One o...

mehr als 2 Jahre vor

Gelöst


Count collisions in an idealized block system
Two blocks, which have masses and , slide along a frictionless, semi-infinite track bounded by a stationary wall. Initially blo...

mehr als 2 Jahre vor

Gelöst


List numbers such that every sum of consecutive positive integers ending in those numbers is composite
The sequence in question in this problem involves numbers such that all sums of consecutive positive integers ending with are ...

mehr als 2 Jahre vor

Gelöst


Find the altitudes of a triangle
Write a function that takes the x- and y-coordinates of three points describing the vertices of a triangle and returns the coord...

mehr als 2 Jahre vor

Beantwortet
Why does my code take so long to run?
You can use this code, but you will have to still split up f and h to have enough memory. Based on your ranges, the highest scor...

mehr als 2 Jahre vor | 0

Beantwortet
I need help graphing these simple functions. I keep getting a blank graph
Need a few more dots. r=linspace(0,100,101); v=(r./(r+100))*10; p=(v.*(r).^2)./r; grid plot(r,p);

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to convert lat lon to utm data and plot it in 10x10m^2 grid map.
% Step 1: Load Data from Excel data = readmatrix('subtowersutm.xlsx'); % readmatrix instead of readtable

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting solutions with symbolic variables
h=10;P=100;Ac=5;Lc=17;aff=19;Tw=7;Ta=5;Li=11;%have no idea what your constants are syms Tsp1 km; xb = (h * P)/ (km * Ac); mb ...

mehr als 2 Jahre vor | 1

| akzeptiert

Gelöst


Sum of numbers from 1-100
Sum up every whole number from 1 to 100. Include 1 and 100 in your calculation.

mehr als 2 Jahre vor

Gelöst


Find the nine-point circle of a triangle
Cody Problem 1336 asks us to find the circle that circumscribes a triangle, and Cody Problem 58354 asks us to find the circle th...

mehr als 2 Jahre vor

Gelöst


Compute measurement uncertainty
Suppose a variable depends on independent variables , , . If the independent variables have uncertainty , , etc. and the uncer...

mehr als 2 Jahre vor

Gelöst


Array size along k-th dimension
Given an n-dimensional array M, find the size of M along the k-th dimension (1 <= k <= n), without using size(), height() or wid...

mehr als 2 Jahre vor

Gelöst


Summing the last column column
Given a matrix, return the sum of the last column of the array.

mehr als 2 Jahre vor

Gelöst


Return part of an array
Given a 5x5 array, return a 3x3 array that contains the cells that are not on the edge of the array: Given this array Return...

mehr als 2 Jahre vor

Gelöst


Compute the head for steady 1D flow in a homogeneous aquifer
Problem statement Write a function that computes the head (i.e., piezometric head for a confined aquifer or water table elevat...

mehr als 2 Jahre vor

Gelöst


Given a base n, find the y values less or equal than 100(without 1), such that they will never produce a periodic number if we divide any whole number between some of them
A periodic number depends on the base b where we are working. So, for example the number 2/3 in decimal base is periodic(0.666...

mehr als 2 Jahre vor

Gelöst


A row vector, pick 1st number, skip 1,pick 3rd number, skip 2,pick,skip,etc then place all picked numbers in order in new vector
Having a row vector of number, pick the first number, place in new output vector as the first value, then skip one number, pick...

mehr als 2 Jahre vor

Gelöst


Find out the smallest number 9 times greater
What is the smallest natural number where the result of moving the digit on the far right to the front of the number is a number...

mehr als 2 Jahre vor

Gelöst


Find the smallest number leading to a maximal product of two numbers that concatenate to another number
Cody Problem 58971 involves the maximal product of numbers that concatenate to a number . For example, if , then the products ar...

mehr als 2 Jahre vor

Gelöst


Compute the maximal product of any two numbers whose concatenation is n
Write a function that takes an input and computes the maximal product of numbers that concatenate to . For example, if , then t...

mehr als 2 Jahre vor

Beantwortet
Trying to shade the area between upper and lower confidence bands on Kaplan Meier Curve
A=readmatrix('data table.csv','Range','A13:D408'); timeDays=A(:,1)';probability=A(:,2)';Lower=A(:,3)';Upper=A(:,4)'; plot(time...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
seach string in arraycell and find idx
C = {'A',31; 'B',5; 'C',3}; idx = find(ismember(C(:,1),{'A'}))

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
transform exponential number to decimal
M1 = importdata("M1.mat"); A = compose('%d (%3.2f%%)', [M1(:,1), M1(:,2)])

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Catenary at different height between 2 fixed points ?
maximum a is minimum y. And the minimum cable length can be found using: a=2;H=10; minL=2*a*sinh(H/2/a) Use cable length > mi...

mehr als 2 Jahre vor | 0

Beantwortet
Can you help me create a function according to mathematical formula?
A=randi(128,1,20) for k=1:3 B=sum(A)/numel(A); idx=A<B; g{k}=A(idx); A(idx)=[]; end g{4}=A; g

mehr als 2 Jahre vor | 0

Beantwortet
how to speed ...i need very fast code
q=6062; matrix=matri(1:q,:); c=size(matrix,2); COR=zeros(c); a=matrix; for yy=1:c b=matrix(:,yy); COR(yy,:)=round(s...

mehr als 2 Jahre vor | 0

Mehr laden