Answered

How to calculate a curve for different variables?

Here is one way to do it. I have reduced the number of elements in your Time and V vectors in order to make a nicer surface plo...

How to calculate a curve for different variables?

Here is one way to do it. I have reduced the number of elements in your Time and V vectors in order to make a nicer surface plo...

약 1달 ago | 0

| accepted

Answered

datetime default stetings 12/24

Use HH instead of hh for the hours: >> datetime.setDefaultFormats('default','hh:mm:ss yyyy-MM-dd') >> t = datetime(2019,8,10,...

datetime default stetings 12/24

Use HH instead of hh for the hours: >> datetime.setDefaultFormats('default','hh:mm:ss yyyy-MM-dd') >> t = datetime(2019,8,10,...

약 1달 ago | 2

| accepted

Answered

How to read a file containing non numerical characters and commas?

The 22 lines of text are easily dealt with using the 'HeaderLines' option. Next you must convert your strings to doubles. Below...

How to read a file containing non numerical characters and commas?

The 22 lines of text are easily dealt with using the 'HeaderLines' option. Next you must convert your strings to doubles. Below...

약 2달 ago | 0

| accepted

Answered

Cell Array Dynamic Size

If you are happy with storing the data as a matrix for each sheet : filename = 'Q.xlsx'; n_sheets = 2; DP = cell(1,n_sheets);...

Cell Array Dynamic Size

If you are happy with storing the data as a matrix for each sheet : filename = 'Q.xlsx'; n_sheets = 2; DP = cell(1,n_sheets);...

약 2달 ago | 0

| accepted

Solved

Fill the matrix - 1

Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the s...

3달 ago

Answered

I have IgorTime data in which time:units = "seconds since 1904-01-01". I would like to convert this seconds to datevc.

First: Are you sure your T vector is in seconds? If so, your time list covers about 48 milliseconds around 01-Jan-1904 11:41:29....

I have IgorTime data in which time:units = "seconds since 1904-01-01". I would like to convert this seconds to datevc.

First: Are you sure your T vector is in seconds? If so, your time list covers about 48 milliseconds around 01-Jan-1904 11:41:29....

3달 ago | 1

Solved

Find the Final State of an Abelian Sandpile

Let us define an <http://nautil.us/issue/23/dominoes/the-amazing-autotuning-sandpile Abelian sand pile> as a matrix that is only...

3달 ago

Solved

Data Regularization

Provided is an m-by-n integer data matrix A whose elements are drawn arbitrarily from a set *S* = [1,2,3,...,S] for any large in...

3달 ago

Solved

Divide elements by sum of elements

In this problem, I ask you to write a function which will divide the elements of each column by the sum of the elements of the s...

3달 ago

Answered

How to add headers to Excel.

filename = 'testdata.xlsx'; header = {'name', 'Age'}; A = [12.7;5.02;-98;63.9;0;-.2;56]; B= [12.7;5.02;-98;63.9;0;-.2;56]; c...

How to add headers to Excel.

filename = 'testdata.xlsx'; header = {'name', 'Age'}; A = [12.7;5.02;-98;63.9;0;-.2;56]; B= [12.7;5.02;-98;63.9;0;-.2;56]; c...

3달 ago | 1

| accepted

Answered

Plot multivariable function,can't get the plot right ?

The main problem with your plot is simply that the large values of f for y > 0.5 dwarf the variations at lower values. Changing...

Plot multivariable function,can't get the plot right ?

The main problem with your plot is simply that the large values of f for y > 0.5 dwarf the variations at lower values. Changing...

4달 ago | 1

| accepted

Answered

Matrix divison or calculating slope

There is a syntax error with your use of parentheses. Also, the slope for the last row is not defined. This should work: nro...

Matrix divison or calculating slope

There is a syntax error with your use of parentheses. Also, the slope for the last row is not defined. This should work: nro...

4달 ago | 0

| accepted

Answered

fitting a curve (3D) to pointcloud data

Assuming that the points are listed in sequence along your curve, you can express x, y, and z as functions of the (approximate) ...

fitting a curve (3D) to pointcloud data

Assuming that the points are listed in sequence along your curve, you can express x, y, and z as functions of the (approximate) ...

4달 ago | 1

| accepted

Answered

Word Search Words Overlapping

I was fascinated by your problem, so I wrote my own version. This gave me some insights: I recommend that you first create an ...

Word Search Words Overlapping

I was fascinated by your problem, so I wrote my own version. This gave me some insights: I recommend that you first create an ...

6달 ago | 0

Answered

How to find same element in txt file (in a coloumn) and find the amount for averaging the value of another coloumn ?

There may be more elegant ways to read the file, but I often prefer to use textscan to read a text file into a cell array of str...

How to find same element in txt file (in a coloumn) and find the amount for averaging the value of another coloumn ?

There may be more elegant ways to read the file, but I often prefer to use textscan to read a text file into a cell array of str...

6달 ago | 1

| accepted

Answered

Degrees-Minutes-Seconds Separation

It simplifies things if you use a doubke quote (") instead of two single qotes ('') to denote seconds. I enclose the modified ...

Degrees-Minutes-Seconds Separation

It simplifies things if you use a doubke quote (") instead of two single qotes ('') to denote seconds. I enclose the modified ...

6달 ago | 0

| accepted

Answered

reading a txt file with rows of different length

fid = fopen(filename); lines = textscan(fid,'%s','delimiter','\n'); fclose(fid); lines = lines{1}; % The points data are in ...

reading a txt file with rows of different length

fid = fopen(filename); lines = textscan(fid,'%s','delimiter','\n'); fclose(fid); lines = lines{1}; % The points data are in ...

7달 ago | 2

Answered

Reading data row by row into matlab.

I often find it useful to read the file into a cell array of strings using textscan. Then I can easily experiment with how to b...

Reading data row by row into matlab.

I often find it useful to read the file into a cell array of strings using textscan. Then I can easily experiment with how to b...

7달 ago | 0

Answered

Reading CSV files in a sequence based on numeric value in file name

d = dir('*.csv'); filenames = {}; index = 0; k = 0; for i = 1:length(d) % Using regexp with lookaround on the file name t...

Reading CSV files in a sequence based on numeric value in file name

d = dir('*.csv'); filenames = {}; index = 0; k = 0; for i = 1:length(d) % Using regexp with lookaround on the file name t...

7달 ago | 0

| accepted

Answered

How to index a random matrix with set conditions?

For a list of the negative values: negM = M(M<0) For the indices of the negative values: [i,j] = find(M<0) To display only t...

How to index a random matrix with set conditions?

For a list of the negative values: negM = M(M<0) For the indices of the negative values: [i,j] = find(M<0) To display only t...

8달 ago | 1

| accepted

Answered

How to identify points that are located in a polygon when this polygon passes through the meridian?

It seems that you are using the mapping toolbox, Then you can use ingeoquad: ingeoquad([35,45],[0,10],[30 40], [355 5]) Your ...

How to identify points that are located in a polygon when this polygon passes through the meridian?

It seems that you are using the mapping toolbox, Then you can use ingeoquad: ingeoquad([35,45],[0,10],[30 40], [355 5]) Your ...

9달 ago | 2

Submitted

remotest(points,boundary)

Finds the position within or on a boundary that is farthest from any member of a set of points.

9달 ago | 2 downloads |

Answered

I have set of latitude and latitude of a specific region which has the mobile towers deployed and now I want to know the best possible location to deploy new mobile towers to overcome the coverage issues, which algorithm or what will be best way to ?

Obviously, optmal locations will depend on many factors, such as topography and signal interference risk. But as a first approx...

I have set of latitude and latitude of a specific region which has the mobile towers deployed and now I want to know the best possible location to deploy new mobile towers to overcome the coverage issues, which algorithm or what will be best way to ?

Obviously, optmal locations will depend on many factors, such as topography and signal interference risk. But as a first approx...

9달 ago | 3

| accepted

Answered

how can i get an improved Euler's method code for this function?

There are two problems with your code: The analytical solution is incorrect You increment x inside the for loop. Don't. The f...

how can i get an improved Euler's method code for this function?

There are two problems with your code: The analytical solution is incorrect You increment x inside the for loop. Don't. The f...

9달 ago | 2

| accepted

Solved

Simulate one complete step in the Biham–Middleton–Levine traffic model

The <http://en.wikipedia.org/wiki/Biham%E2%80%93Middleton%E2%80%93Levine_traffic_model Biham–Middleton–Levine traffic model> is ...

10달 ago

Answered

saving real roots in a vector; "solve" gives me weird results

The code below will solve your problem as stated. In the general case with other parameters it may not be robust. You may need...

saving real roots in a vector; "solve" gives me weird results

The code below will solve your problem as stated. In the general case with other parameters it may not be robust. You may need...

10달 ago | 0

| accepted

Submitted

Curvature of a 2D or 3D curve

Calculates the local radius of curvature as well as the cumulative arc length and the curvature vector along a 1D curve in 2D or...

10달 ago | 69 downloads |

Answered

How to find the arclength and radius of curvature for a set of 3D data points?

I was inspired by your question to write a functon that calculates the arc length and curvature of a 1D curve in 2D or 3D space....

How to find the arclength and radius of curvature for a set of 3D data points?

I was inspired by your question to write a functon that calculates the arc length and curvature of a 1D curve in 2D or 3D space....

10달 ago | 1

| accepted

Solved

Find the stride of the longest skip sequence

We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....

12달 ago

Solved

Integer Sequence - II : New Fibonacci

Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...

약 1년 ago