Question

Estimated Objective Function Value

When trying an SVM we can get a graph of the objective function The z axis is the Estimated Objective Function Value, what are ...

nästan 2 år ago | 0 answers | 0

Question

Plot high dimensional Matrix

I have a matrix with 5 columns, 4 are for values and 1 is the catgory. For example: 4 grades and a category passed/did not pass...

nästan 2 år ago | 1 answer | 0

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...

ungefär 2 år ago | 0 answers | 0

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 ...

ungefär 2 år ago | 1 answer | 0

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...

ungefär 2 år ago | 1 answer | 0

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 = [-...

ungefär 2 år ago | 2 answers | 0

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 ...

mer än 2 år ago | 0 answers | 0

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 ...

mer än 2 år ago | 0 answers | 0

Question

Multiple functions in one file

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

mer än 2 år ago | 1 answer | 0

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?

mer än 2 år ago | 2 answers | 0

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...

nästan 3 år ago | 1 answer | 0

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=@...

nästan 3 år ago | 1 answer | 0

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) ...

nästan 3 år ago | 1 answer | 0

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>>...

nästan 3 år ago | 2 answers | 0

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...

nästan 3 år ago | 1 answer | 0

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...

nästan 3 år ago | 1 answer | 0

Question

Least Square with condition

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

nästan 3 år ago | 1 answer | 0

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...

nästan 3 år ago | 0 answers | 1

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)

nästan 3 år ago | 0 answers | 0

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\...

nästan 3 år ago | 1 answer | 0

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)); ...

nästan 3 år ago | 2 answers | 0

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 ...

ungefär 3 år ago | 1 answer | 0

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;

ungefär 3 år ago | 1 answer | 0

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]...

ungefär 3 år ago | 2 answers | 0

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 ...

ungefär 3 år ago | 1 answer | 0

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?

ungefär 3 år ago | 1 answer | 0

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...

mer än 3 år ago | 2 answers | 0

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

mer än 4 år ago | 1 answer | 0

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...

mer än 4 år ago | 2 answers | 0

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 ...

mer än 4 år ago | 2 answers | 0