# Sara Boznik

**Statistics**

RANK**1.124**

of 262.597

REPUTATION**46**

CONTRIBUTIONS

**4** Questions

**30** Answers

ANSWER ACCEPTANCE **
75.0%
**

VOTES RECEIVED**7**

RANK

of 17.976

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 113.608

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

I want to create a matlab program to perform this operation and show the result in each operation in table

part=0; sumation=0; for i=1:1:200 for k=1:1:i part=x(i-k).*f(k) sumation=sumation+part end end Sumation is x(i).

circa un anno ago | 0

Question

How to plot fission cross section

Hi, I want to plot fission cross section for uranium 235 like on link below. I dont have any data mesurment. It is some funct...

circa un anno ago | 0 answers | 0

### 0

answershow take a mathematical function from user

./ means divide numbers because in matlab / means divide of matrix

oltre un anno ago | 0

how to keep adding a varaible in a loop?

First one: n=1; suma=0 for n=1:1:1000 AA(1,n) suma=AA(1,n)+suma; norminv=1-suma n=n+1; end Second one: k=2...

oltre un anno ago | 0

store data after WHILE loop

Try: state(:,n)=x(:); end state=state(:,1:n)

oltre un anno ago | 1

Question

How to solve this equation?

Hi everyone, I want to solve this equation in Matlab. Until now I have the following code: a=18 b=60 c=76.7 syms x solx=...

circa 2 anni ago | 1 answer | 0

### 1

answerHow to replace a column vector in matrix

A = [1 -4 1;4 -1 2;2 2 -3] B = [6;-1;-20] B=B' A(1,:)=B'

circa 2 anni ago | 0

| accepted

How to plot (1) amplitude vs time and (2) amplitude vs frequency plots from .wav file

figure(1) subplot(2,1,1) plot(t,y); title('Horn C5'); xlabel('Time (s)'); ylabel('Amplitude'); % Amplitude vs Time plot subp...

circa 2 anni ago | 0

Question

Data with different length of rows

Hi I have following question. I have data like this: 1 2 3 4 5 6 7 8 9 1 2 3 4 1 2 I want to calculate average of each row....

circa 2 anni ago | 1 answer | 0

### 1

answerEvaluating 2D function on 2D grid without using "for" loops

f = @(x,y) x.^2+y.^2; x = 1:10; y = 1:5; [X,Y] = meshgrid(x,y); meshc(X, Y, f(X,Y)) grid on You can try that. Best of luc...

circa 2 anni ago | 0

Three-digit format

Hi I suggest you that you use: fprintf('%.3g',1.111111)

circa 2 anni ago | 0

MATLAB homework help request

It was told to me that I should not give the whole homework answers. But I can give you advises: if for loop (also formula ex...

circa 2 anni ago | 0

How to find value of X when Y reaches maximum value

https://www.mathworks.com/help/symbolic/examples/maxima-minima-and-inflection-points.html read about this

circa 2 anni ago | 0

How to select matrix column from minimum row value

distance_to_point = [2, 3, 4, 5; 6.8, 2.9, 6.1, 6.7] minima=min(distance_to_point(2,:)) [m,n]=find(distance_to_point==minima) ...

circa 2 anni ago | 0

negative continuous position on vector

AA=[0 0 1 0 0 0 0] ne=-1; po=1; [n,m]=size(AA) b=find(AA(1,:)==1) BB=zeros(n,m) for i=1:b-1 BB(1,i)=ne ne=ne-1 ...

circa 2 anni ago | 1

Layered Composite Calculations - how to perform a loop to calculate the moment for each layer of a composite when the equation changes as each layer is added in?

If you have M(r): k=2*r-1; part=0; mom=0; for i=1:r part=-siggy(i)*(k/2)*h0^2 k=k-2; mom=mom+part end

circa 2 anni ago | 0

| accepted

Indexing in a vector

r=triu(r); r; w=min(r(r>0)); b=max(r(:)); [m,n]=find(r==w); fprintf(id,'Minimum %.4f.\n',w); for i=1:length(m) fprint...

circa 2 anni ago | 0

Write a MATLAB script file that calculates the sum of first n natural numbers (the program could prompt the user for the number n). The program must use a “for” or “while” loop to accomplish this, and must NOT use the ready formula s = 1 2 n (n + 1).

That is easy. n=input('n:') sum=0; for i=1:n sum=sum+i end

circa 2 anni ago | 1

| accepted

Matrix Determination Issue in getting hidden inputs

function matr() if [n,n]==size(A) & [m,m]=size(B) & n==m C=zeros(n,n); D=zeros(m,m); C=A; D=B; E=C.*D; Reversed_Matrix=fl...

circa 2 anni ago | 1

| accepted

What does mean .* and ' ?

.* means matrix product, if you don't write . will Matlab product the numbers on the same position. ' you use it usually when y...

circa 2 anni ago | 1

Matrix Determination Issue in getting hidden inputs

Script: % n=input(""); that part is actually no needed % m=input(""); A=input('A'); B=input('B'); matr(A,B) Function: fun...

circa 2 anni ago | 0

how do i write a program that calculate side length c using pythagoras' theorem(a2+b2=c2) assuming a and b to be integer values starting from 1, and print out the pythagorean results that satisfy a>=1,b>=1 and c<=10.

n=0; sum=0; for a=1:1:20 for b=1:1:20 c=sqrt(a.^2+b.^2); if c<=10 fprintf('c=%.2f,a=%d,b=%d\n',c,a...

circa 2 anni ago | 0

Matrix Determination Issue in getting hidden inputs

In function you write: function Determinant = matr (A,B) Reversed_Matrix=flip(A.*B); Determinant=det(Reversed_Matrix); end ...

circa 2 anni ago | 0

why am I getting a different plot using fsurf and surf for the same function?

It is possible that you forgot .* Good luck.

circa 2 anni ago | 0

How to avoid effect of number of extra zeros after decimal point on the equality between two arrays?

Hi, I also tried like you and also got wrong result. Later I checked for y1(201) where the ans=0 and I got correct result. I...

circa 2 anni ago | 0

how to generate chromosome?

Is maybe this what are you looking for? chromo=40; gene=20; for i=1:1:chromo for j=1:1:gene pop=randi([0,1]); ...

circa 2 anni ago | 1

| accepted

Can anyone help this graph matlab code please?

Hi, is maybe this code what are you looking for? x=-3:0.01:3; y=NaN(size(x)); L=x<=-2; y(L)=0; L=x>-2 & x<0; y(L)=x(L)+2;...

circa 2 anni ago | 1

How to add a second Y axis to a bar chart?

Hi! I recomend you that you use plotyy. Below you have an example. [ax,h1,h2] = plotyy(f,[a',b',d',U'],f,I); set(ax(1),'...

circa 2 anni ago | 0