I have two cell arrays. One is 'trans_blk' of size <232324x1> consists of cells of size <8x8> and another 'ca' is of size <1024x1> consists of cells of size <8x8>. I want to compute mean square error (MSE) for each cell of 'ca' wit
Looking for a command similar to repmat but for tiling tables instead of arrays. My thinking is there might be a quicker/cleaner way than using a for loop. Cheers
I've got a fairly large and complex text file to read into MATLAB. The basic format looks something like this: 000723 4 123.12345 5 234.76543 ... 178.94444\n The first column is always a six-digit date in yymmdd format, and the last column is always
My task scheduler opens MATLAB, but doesnt run 'file.m'. It just stands there with the cursor flashing in the command window! This is more than frustrating. Please help me, please. I have added the path to the file so it is not to do with pointing to
I'm totally new to MATLAB, and I have dificulties with some code I have to understand for my project. Here is the code : feature = feature(1:64,:,:); feature(43,:,:) = []; feature(33,:,:) = []; feature = feature([36,38,45,46,47,53,54,55,59,60,61],:,:
Hi everybody I have this problem: I have Dataset of n vectors each has D dimensions. I also have a covariance matrix of size D*D, Let It be C. I perform the following action: I choose K vectors from the dataset, and also choose E dimensions randomly.
I have the following code but it is not giving me the values I want. The loop is not working. Basically, I want the variables J1, J2, J3, J4 and J5 calculated from each coordinates of Mx and My which is used to calculate P in an existing Simscape fil
I generate a random data array and I wish to perform on it PCA where I color differently each group and perform a convex hull but without successes. I will appreciate a lot if you can explain me how to do it. The code until now: myData = rand([5,50])
I have developed a project of"Automatic Number Plate Reader" in matlab and I want to call this project in C# windows application for further process.But when i implement this in C# i got a error: MWArray assembly failed to be initialized. I have
I am relatively new to MATLAB so forgive me if this is rather basic question. I am trying to understand how to manipulate variables and pass the results between functions within the GUI. If I set up the GUI using the GUIDE interface I get several fun
I used this code to detect lines from images using the Radon Transform function radon(). I = imread('C:\Users\AMiNE\Desktop\sequance 2\Daylight_00010.jpeg'); L=rgb2gray(I); BW = edge(L); imshow(I) figure, imshow(BW) theta = 0:179; [R,xp] = radon(BW,t
I have a 5x5 table: a b c d e a 1 2 3 4 5 b 3 5 7 2 6 c 1 3 4 6 1 d 4 4 1 7 8 e 6 7 2 1 6 where the headers are the strings. I want to know how to reorder the table rows and columns using the headers so for example of I wanted them to be in this orde
I'm developing Python software for someone and they specifically requested that I use their DFT function, written in MATLAB, in my program. My translation is just plain not working, tested with sin(2*pi*r). The MATLAB function below: function X=dft(t
I have the following very simple code. >> z=ones(4,4) z = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 >> size(z) Index exceeds matrix dimensions. Does anyone know why? Any comment is greatly appreciated. --------------Solutions------------- A likely cause
i have a video that i should get its color map , do some processes on it and reconstructing it back , i have done all that and got the new color map back (uint8 matrices )but don't know how to convert it back to video and i used this code to get my o
for specific frequencies f and for 12 values i need to make 12 triangular filters . I also calculated the mean frequencies fc so that the peak of each triangle will be at the center frequency, the max amplitude for each triangle will be 1.The idea is
I have a 3D matrix say for eg. A(10x5x8). I need to get a 2D matrix (Boolean) out of it of size 10x5. True if its elemental 3 Dimensional values are all same. i.e. Result(1,1) = 1 if A(1,1,1) == A(1,1,2) == A(1,1,3) etc.. False if at least one is dif
What I wish to do is find the first two peaks of a set of numbers in a file, generally there are 3 peaks but I would like to disregard that peak. What I have is this but its not correct, in the file every x coordinate has y coordinate, and there are
I'm going to explain a MATLAB mex-tutorial example that is successful. In my home directory, I have a c-file "/home/yprime.c". I want to create MATLAB-executable (mex) file (or .mex64 format). This example only requires MATLAB library and includ
How can I convert an RGB or indexed images into gray scale without using B=ind2gray(A,map) from MATLAB? --------------Solutions------------- I don't understand why you just can't use ind2gray.... but if you really have to implement this from first pr