Related news

Published: 14/03/2018Suppose, we have a A = [3 4 5; 7 1 4] . I want to make it as [0 0 1; 1 0 0] . I tried this: maxa = max(A(:)); A(A==maxa) = 1 ; This is replacing only maximum value of matrix by one. I need maximum val ... Read moreSource: stackoverflow.com


Published: 14/03/2018I am working on dress feature identification using opencv. As a first step, I need to segment tshirt by removing face and hands from the image. Any suggestion is appreciated. Read moreSource: stackoverflow.com

Published: 14/03/2018Im having a problem connecting my Lego ev3 kit with matlab using usb and bluetooth and have been looking for a solution from a week can anyone help me out of this? Read moreSource: stackoverflow.com

Published: 14/03/2018internal halving method for single variable optimization Read moreSource: www.mathworks.com

Published: 14/03/2018My problem is the following: I have very many (~1000) mutually calling Matlab scripts, which are very poorly written, regularly damage each other's environments and generally became unmanageable. One ... Read moreSource: stackoverflow.com

Published: 14/03/2018h=0.005; x = 0:h:40; y = zeros(1,length(x)); y(1) = 0; F_xy = ; for i=1:(length(x)1) k_1 = F_xy(x(i),y(i)); k_2 = F_xy(x(i)+0.5*h,y(i)+0.5*h*k_1); k_3 = F_xy((x(i)+0.5*h),(y(i)+0.5*h*k_2)); k_4 = F_x ... Read moreSource: stackoverflow.com

Published: 14/03/2018I have a time series signal (45 sensors connected to a gyroscope, ECG reader, Rotation axis and so on ...). I am looking for some noticeable features in one of these sensors. What I did, is first clea ... Read moreSource: stackoverflow.com

Published: 14/03/2018Consider a difference equation with its initial conditions. 5y(n) + y(n1)  3y(n2) = (1/5^n) u(n), n>=0 y(n1) = 2, y(n2) = 0 How can I determine y(n) in Matlab? Read moreSource: stackoverflow.com

Published: 14/03/2018I am plotting a figure in Matlab with multiple subplots. Below is one of the plots handaxes1=axes('position', [0.06 0.7 0.14 0.20]); I=shadedErrorBar( time(301:901), GrandAvg_Q_S_all30.avg(5,[301:901] ... Read moreSource: stackoverflow.com

Published: 13/03/2018I want to simulate a "game": start from a deck of n distinct cards, say a vector (1 2 ... n). Separate this in two equally large semidecks, maintaining the initial order; if n is odd, separate it like ... Read moreSource: stackoverflow.com

Published: 13/03/2018In the article reading face recognition, I read this sentence: "The corrected 3D face is further resampled with a uniform resolution of 1mm on the xy plane". I found it on the Internet and only found ... Read moreSource: stackoverflow.com

Published: 13/03/2018I want to do a comparison of 2 audio files (each audio file is speaking "ba a ta") with the existing function in matlab called Dynamic Time Warping (DTW). Before doing a dynamic time warping, I get an ... Read moreSource: stackoverflow.com

Published: 13/03/2018I have the following piece of code: nruns=100 nloops=2 zz=zeros(nloops,nruns); for wLoop=1:nloops delete(gcp('nocreate')); parpool(npools); parfor wRun=1:nruns zz(wLoop,wRun)=rand end end disp('done') ... Read moreSource: stackoverflow.com

Published: 13/03/2018I am taking two images using single moving camera. I tried to take them from same epipolar line. Then I compute disparity in Matlab. I1 = imread('4.jpg'); %right image I2 = imread('3.jpg'); %left imag ... Read moreSource: stackoverflow.com

Published: 13/03/2018I was trying to implement a simple multilayer neural net to solve the XOR, its just to learn how multilayer nets and weight updates works. I came up with the matlab code and its working fine and gets ... Read moreSource: stackoverflow.com

Published: 13/03/2018i have the following problem. I am trying to solve 2 Algebraic Equations with the solve fkt. syms A B %solA ==> Xir... solB ==> Rir R=Opit(1:end,1); X=Opit(1:end,2); solA=zeros(length(Opit),1); ... Read moreSource: stackoverflow.com

Published: 13/03/2018I want to generate a Ccode from the following Simulink model using the ERT. The Coder codes the content of the matlab.mat hard into the code: /* Start for FromFile: '<Root>/From File' */ { stat ... Read moreSource: stackoverflow.com

Published: 13/03/2018I need to open a serial COM port on Matlab, receive some data and then communicate on the same COM port in Simulink. However, it seems to be impossible to receive data in simulink since the COM port a ... Read moreSource: stackoverflow.com
Comment