[Solved] Matrix Scale down using MATLAB [closed]

You cannot have non-integer sized matrices. 22,5 is not a valid dimension of a matrix. If you are talking about images you can resize the matrix in Matlab using imresize. . A = rand(254, 128); A = imresize(A, [45, 23]); 5 solved Matrix Scale down using MATLAB [closed]

[Solved] face detection with svm and feature extraction using matlab [closed]

For starters, try detecting faces using vision.CascadeObjectDetector in the Computer Vision System Toolbox. If you have to roll your own, then take a look at this example, showing how to train a classifier to recognize digits using HOG features and SVM. Note, that the classifier is only one part of the process. You would need … Read more

[Solved] To reverse the values from up to down and change y-axis too in Matlab [duplicate]

To change direction of y axis, including axis labels and plotted values, you use set(gca,’YDir’,’reverse’) When you plot an image, for example using imagesc, the YDir property is automatically set to reverse. So, to change it, set it to normal: set(gca,’YDir’,’normal’) 2 solved To reverse the values from up to down and change y-axis too … Read more

[Solved] Convert Matrix to Vector [closed]

Your problem is a very specific one. I don’t see how this will be of any use to anybody but yourself. There is no ‘one line solution’. There are many ways to approach indexing problems, I like to use scalar indexing when possible: Ncolumns = size(Matrix,1); Nblocks = floor(Ncolumns/4); %number of 4-line blocks (excluding the … Read more

[Solved] goto keyword in matlab [closed]

I will write just the skeleton of the code, the rest of the statements must be completed by you. I will use ii and jj instead of i and j because these have special meaning in MATLAB (complex square root of -1). for ii = 1:101 % statements end; jj = 6; while true for … Read more

[Solved] How could I write the following functions in Matlab for MS protein analysis?

To get started with, FASTA is text file format. To write text files check MATLAB documentation of fopen, fprintf and fclose. To load the text from the data files you’ve written you can use fopen, fscanf and fclose. Actually, MATLAB has fastainfo, fastaread and fastawrite too. You should check MATLAB documentation of these commands and … Read more