I have imported a table from an external file via textscan. For example: A = rawCellColumns2(:, 1); B = cell2mat(rawNumericColumns2(:, 1)); C = cell2mat(rawNumericColumns2(:, 2)…
Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.
I have imported a table from an external file via textscan. For example: A = rawCellColumns2(:, 1); B = cell2mat(rawNumericColumns2(:, 1)); C = cell2mat(rawNumericColumns2(:, 2)…
I have a cell array that looks like this: mydata = [10x11 double] [5x11 double] Name Size Bytes Class Attributes mydata 1x2 1544 cell I'm trying to convert this to a numeric arr…
I have a 2x10 matrix. Would anybody know how I could convert it into a 1x10 cell array - so that each cell contains a 2x1 matrix? I'm new to matlab and would appreciate any help.…
Hi Everyone, I have a problem with classification. I have 39 samples of training data (39x10935) and 347 samples of testing data (347x10935). classify function returns: "The covari…
Please assume that I have a matrix as follows: A = [0 1 0 0 1 1 0 0 0 0 1 0 0 0 0 1 1 0 1 1] I would like to identify and selcet the minimum number of rows that have value of on…
I hope all of you are well. I'm currently working on replacing specific element values with NaN's within a matrix that is 300x600. I want to replace the values based on pairs of ro…
I want to know which is the most efficient way to set a lot of matrix values to zero. I currently have a 90x90x7613 matrix with several numbers inside that should be set to zero (n…
Can someone explain how to combine .mat files present in workspace or in directory into one .mat file? The problem is that the files are not properly named and the files have diffe…
In order to feed into another program, I must do exactly as the title says. So far, I have been able to find the indices where a blank row is needed directly after each row number,…
How can i apply a mean or laplacian or average or any kind of filters 3x3 on any matrix i give it to it and get the new matrix ? What is the code for it…