Community Profile

photo

Harel Harel Shattenstein


Bar Ilan

38 total contributions since 2015

Contact

Harel Harel Shattenstein's Badges

  • Thankful Level 2

View details...

Contributions in
View by

Question


Linprog of max LP
For Runing the code: % Linprog defined on min problem and Ax<=b for max problem take - objectiveFunction %% The problem ob...

13 Tage ago | 0 answers | 0

0

answers

Question


Plot functions and intersections
Hi, I am trying to plot a feasble area of a LP problem: Max z=2*x1+2*x2 s.t 2*x1+x2 <= 16 3*x1+2*x2 <=25 2*x1+3*x2 <=25 ...

22 Tage ago | 1 answer | 0

1

answer

Question


Random Test Dataset With More Values Of One Type
I have a set with y values of 0 or 1. most of my data has 0 value, so when splitting the data to train and test 80 -20 respecti...

27 Tage ago | 1 answer | 0

1

answer

Question


Linear Programming With geq constraints
I have the following problem: Max z=4x_1+3x_2 s.t Is the following code is correct? as it is geq and not leq: z = [-...

2 Monate ago | 2 answers | 0

2

answers

Question


Open a function as GUI
how can I open the application as a GUI, calling the function works only as a function and does not open any window like imtool ...

6 Monate ago | 0 answers | 0

0

answers

Question


Canny Edge Detection, non-maximum suppression
I am trying to implant Canny Edge Detection algorithm. I started first with decomposing it using matlab functions. function ...

6 Monate ago | 0 answers | 0

0

answers

Question


Multiple functions in one file
When writing a function with few subfunctions, should would write function [output]=subfunction1 (input) under the main function...

7 Monate ago | 1 answer | 0

1

answer

Question


What Is the third value when reading an image
When using imread() we get a matrix of the size [r,c,x] what does x stand for?

7 Monate ago | 2 answers | 0

2

answers

Question


Running On matrix by diagonals
I am looking for an algorithm that can collect the elements of a matrix in the following way <</matlabcentral/answers/uploade...

11 Monate ago | 1 answer | 0

1

answer

Question


Finding min point of a second derivative function
<</matlabcentral/answers/uploaded_files/124440/Screen%20Shot%202018-07-08%20at%2015.57.03.png>> What I have done is: f=@...

12 Monate ago | 1 answer | 0

1

answer

Question


Error Using Function Fplot
T=[-20:20:120] mu=[4 0.38 0.095 0.032 0.015 0.0078 0.0045 0.0032] function []=ex4(T,mu) A=[ones(length(T),1) ...

12 Monate ago | 1 answer | 0

1

answer

Question


Find zeros in interval
I try to find a solution for <</matlabcentral/answers/uploaded_files/124217/Screen%20Shot%202018-07-06%20at%2011.33.56.png>>...

12 Monate ago | 2 answers | 0

2

answers

Question


Ploting a function and its roots
f=@(x)x.^2-5*sin(x); [p1,p2]=fzero(f,1,[-1,3]) fplot(f1,[-1,3]) Can I "draw" the roots p1,p2 in the same function...

12 Monate ago | 1 answer | 0

1

answer

Question


recursive permutation algorithm in matlab
I am trying to write a simple, recursive code for finding permutation. with repetition and no matter the complexity I found...

12 Monate ago | 1 answer | 0

1

answer

Question


Least Square with condition
<</matlabcentral/answers/uploaded_files/124137/Screen%20Shot%202018-07-05%20at%2020.23.34.png>>

12 Monate ago | 1 answer | 0

1

answer

Question


Numerical solution For Ax=b
<</matlabcentral/answers/uploaded_files/123978/Screen%20Shot%202018-07-04%20at%2017.20.06.png>> What I manage is: fu...

12 Monate ago | 0 answers | 1

0

answers

Question


Symbolic Integration Using Solve
Why is the following do not work syms x t f=@(x)int(@(t)exp(-(t./x).^2),-1,1); solve(f==1.5,x)

12 Monate ago | 0 answers | 0

0

answers

Question


Least Squares Of Linear Equations
<</matlabcentral/answers/uploaded_files/123860/Screen%20Shot%202018-07-03%20at%2010.59.15.png>> P=mt/b+t iff P=m-b*P\...

12 Monate ago | 1 answer | 0

1

answer

Question


Finding x such that 1 is eigenvalue
Let A=[1 2 3;3 x 4; 1 2 5], find x such that 1 is eigenvalue of the matrix syms x det(A=[1 2 3;3 x 4; 1 2 5]-eye(3)); ...

etwa ein Jahr ago | 2 answers | 0

2

answers

Question


Recursive Solution Of System Of lInear Equations
Given a square upper triangular matrix A and a solution column b. Write a recursive algorithm to find the vector x So the ...

etwa ein Jahr ago | 1 answer | 0

1

answer

Question


Multiplying By 10000 vs 10^4
Why A=rand(3,3); B=A(:)*10000; is different from A=rand(3,3); B=A(:)*10^4;

etwa ein Jahr ago | 1 answer | 0

1

answer

Question


Finding if a vector is a subset
I am trying to build a function that for a=[1 2] b=[1 3 2 9 5] will return false and for a=[1 2] b=[1 2 2 9 5]...

etwa ein Jahr ago | 2 answers | 0

2

answers

Question


Replacing min and max values
For a given matrix I need to replace each element which is not min or max with the value 99 For example let M=[5 0 2;8 ...

etwa ein Jahr ago | 1 answer | 0

1

answer

Question


Right array division with a vector
Why 1./1:1:10 return error and 1./(1:1:10) Does not? Should not 1:1:10 return a vector?

etwa ein Jahr ago | 1 answer | 0

1

answer

Question


Can Matlab row reduce this matrix?
Can we row reduce the following matrix? <</matlabcentral/answers/uploaded_files/100684/Screen%20Shot%202018-01-09%20at%2014.5...

mehr als ein Jahr ago | 2 answers | 0

2

answers

Question


converting decimal to double
I am trying to write 81 in IEEE754 64bit (Double). I have tried >>double(int64(81)) But is does not work

mehr als 2 Jahre ago | 1 answer | 0

1

answer

Question


binary to decimal when binary with radix point
I have to convert the following binary number to decimal: 11000101.101 I am using bin2dec('binary number') but is d...

mehr als 2 Jahre ago | 2 answers | 0

2

answers

Question


format short and format long
I need to find the relative error between 2 variable, the one in format short and the other in format long. How can I take the ...

mehr als 2 Jahre ago | 2 answers | 0

2

answers

Question


Accessing a specific char in a string
I am trying to access a specific char in a string. I get a number by the user and I need to index all the digits, because the...

mehr als 2 Jahre ago | 1 answer | 0

1

answer

Question


Using array as a for loop
I need to solve the polynomial x^4+nx^3-1 for n=-1,0,1 (without using for loop) What I did is: n=(-1:1:1); co_poly=[1...

mehr als 3 Jahre ago | 1 answer | 0

1

answer

Load more