Community Profile

### St. Petersburg State University

41 total contributions since 2014

Professional Interests: computational physics, applied mathematics

View details...

Contributions in
View by

How to assign numbers to letters of the alphabet. Ex. A/a=1 B/b=2
The ASCII codes can be found with the function double double('A'); 65 If you want to get its ordinal number in the alphabet, ...

5 jours ago | 0

How to sum columns of a matrix in MATLAB in specified number of columns?
B=squeeze( sum( reshape(A,size(A,1),10,[]) ,2) );

6 jours ago | 0

| accepted

Create a gaussian from x values
L=20; V = linspace(0,L,301); sigma = L/20; T0 = exp(-((V-mean(V))/sigma).^2/2); plot(V,T0);

12 jours ago | 1

| accepted

extract a double array to multiple arrays
b1=aa(1:4:end); b2=aa(2:4:end); b3=aa(3:4:end); b4=aa(4:4:end);

12 jours ago | 1

| accepted

Importing Latex Code into Matlab Scripts
In live script, go to \insert\Equation\Latex equation or just press Cntrl+Shift+L or type your Latex equation embraced by \$ symb...

16 jours ago | 0

Submitted

DigBit
Image Digitizer: Turn your scanned plots to the numeric form

How can I calculate the integral2 using sum of prod?
symprod does not support the element-wise multiplication, which is needed for integral2. You sholuld probably define your fun v...

18 jours ago | 1

| accepted

sorting 2 array based on elements of other array
[A,ind]=sort(A); B=B(ind);

20 jours ago | 0

| accepted

How to find the maximum distance between two curves?
(1) Specify, what do you mean by the distance between curves. If this is the distance between any points of them, a special (tho...

24 jours ago | 2

| accepted

New to Matlab- How to import a text file for analysis that contains numbers and characters?
If you need it only once (or few times), use the Import utility of Matlab (Home\Import Data - a green downward arrow); chose the...

27 jours ago | 0

help speeding up an incrementing loop
At the first glance, you can replace numerator=0; for k = 1:n_trc numerator = nume...

28 jours ago | 0

How to find the vertical height of an ellipse/y axis length of ellipse.
In fact, the height and the width of an ellipse can be easily and more accurately found analytically. Here is Matlab program rea...

29 jours ago | 1

| accepted

How to expand the Gaussian Kernel into series of eigenfunctions?
Fitst of all, you should specify --nothing can be done with an arbtrary function. Then, you can try to calculate the integrals a...

environ un mois ago | 1

| accepted

Turn function to zero when it reach specific value.
x = linspace (0,180,1800); y = 1. * ((exp (-0.01 .* x)) .* (sin (x)-(x .* cos (x / 2)))); Pu = 30; y(find(y>=Pu,1):end)=0; ...

environ un mois ago | 0

| accepted

How to show part of a nested structure as a vector?
sn='seine_1'; % sn=fieldnames(all_seines); % sn=sn{1}; nm=fieldnames(all_seines.(sn)); N=numel(nm); A=zeros(N,1); for k=...

environ un mois ago | 0

Values over 1000 use e
read matlab help on the "format" command. try "format longg".

environ un mois ago | 0

how to create Chi squared distribution using mean and variance?
see https://www.mathworks.com/help/stats/chi-square-distribution-1.html

environ un mois ago | 0

Not spotting where/how index exceeds number of array elements
Is this what you want? Live script vesion is attached. xmesh = linspace(0.01,0.05,5); solinit = bvpinit(xmesh, @guess); sol...

environ un mois ago | 0

| accepted

Solved

generate the matrix
given a value n (say 4) - generate the matrix like below; y= [0 1 2 3 4; -1 0 1 2 3; ...

environ 2 mois ago

Cell of character arrays
S=cell(10,1); S(1:5)={'cat'}; S(6:10)={'dog'};

environ 2 mois ago | 0

| accepted

How to find all letters before a character in a char variable
split(secretMes,'#')

environ 2 mois ago | 1

How to plot for for a range? showing error
Probably, t^2 and t^4 are implyed to be t.^2 and t.^4. And all the multiplications of the expressions containing t are implyed ...

environ 2 mois ago | 0

Looping for storing differet matrix in different rows but in same matrix.
Before the loop, initiate Calculated_Data=zeros(numel(alpha_data),numel(alpha_data{1,1})); k=0; within the loop, use k=k+1; ...

environ 2 mois ago | 1

| accepted

Adding k discrete functions together in a "for" loop
If you do not need the "wave" contents for a further use, just drop out (k) from all its entries. If you need it for a further ...

environ 2 mois ago | 0

| accepted

Calculate n and p values for binomial distribution in Matlab
The question has nothing to do with Matlab. Just recall, that in the binomial distribution =n*p and =n*p*(1-p).

environ 2 mois ago | 0

Differentiating algebraic equation fractions
syms x; simplify(diff(@(x)((-x^2-x)/(x+2)*(x+3)),x))

environ 2 mois ago | 1

| accepted

Solved

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

environ 2 mois ago

Solved

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

environ 2 mois ago

Solved

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

environ 2 mois ago

Solved

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

environ 2 mois ago