Answered
How do I filter rows of a cell based on an empty column
Similarly to your previous question, the code will be like: % 100x100 sample cell array with randomly located empty cells ...

9 years ago | 0

| accepted

Answered
How do I filter data of a cell based on a column value?
I think the code will be like this: % 100x100 sample cell array C = num2cell(randi(10,100,100)); % Rows where the 9...

9 years ago | 0

| accepted

Answered
How to plot this equation y=exp(-(K-1))
Or, simply plot your function, like: K = linspace(0,10,100); y = exp(-(K-1)); plot(K,y);

9 years ago | 0

| accepted

Answered
How do I filter out a row in a cell array
You can do this with |cellfun| function, like: % 83x10 sample cell array C = num2cell(rand(83,10)); % Set some empt...

9 years ago | 0

| accepted

Answered
Search through a range of col1 in matrix to output col2 values?
If my above understanding is correct, the following code can find the target value. % Sample numeric array A = rand(100,2)...

9 years ago | 0

Answered
How can I read and work with a csv file (.csv) ?
Or, more easy way is to use |Import tool|, especially the data file contains not only numbers like your case. Import tool: ...

9 years ago | 0

| accepted

Answered
How to separate a cell array based on existing strings?
You can do this by using |cellfun| function, like: % Sample cell array C = [{'VR26';'VR26';'VR27';'VR40'},num2cell(rand(...

9 years ago | 1

| accepted

Answered
Classification Algorithms for Unlabelled Data
Unsupervised classification algorithms are summarized in the following link. <https://www.mathworks.com/discovery/unsupervise...

9 years ago | 1

| accepted

Answered
Exporting multiple Excel Files
I think the MATLAB script for your question will be as follows: fileList = dir('*.txt'); for kk = 1:numel(fileList) ...

9 years ago | 0

Answered
How to remove a pattern of rows from .csv
I believe the following code can help. % Read CSV file filename = 'yourFile.csv'; data = csvread(filename); % 134,433...

9 years ago | 0

| accepted

Answered
How to make axis invisible? But not xlabel and ylabel!
How about overwriting a white axis on the original X- and Y-axis, like: figure plot(magic(4)); ax1 = gca; hold on ax2 =...

9 years ago | 2

Answered
How to duplicate columns in a cell array based on different values in last row
How about this code? I hope this will be help. % Input cell array D = {'2' '2'; '01346' '01347'; ...

9 years ago | 0

| accepted

Answered
Plot cell array as a histogram using hist3?
You can use |bar3| to do this. Here is an example. % 30x30 cell array sample C = num2cell(randi(100,30)); % Bivari...

9 years ago | 0

Answered
For Loop for Cell?
The last half of your code should be revised, like: % Get the value out of a cell a = str2num(cell2mat(B)); % Make ...

9 years ago | 0

| accepted

Answered
How to remove support wire from a sphere droplet
How about using |imopen| function? I = imread('image.png'); I = rgb2gray(I); BW = I < 125; % -> before.pn...

9 years ago | 0

Answered
How to use if inside loop
I think the following will solve your problem. Total = zeros(200,1); for kk = 1:200 RY = kk; L_B=40; L_S=20...

9 years ago | 0

| accepted

Answered
4D function plot
Using <https://www.mathworks.com/help/matlab/ref/isosurface.html isosurface> function, you can do somehow this type of plot. In ...

9 years ago | 1

Answered
Finding similar values in two different cell arrays and comparing them?
I would recommend using |table| to store the data and |innerjoin| function to find the corresponding passengers. Here is a simpl...

9 years ago | 0

Answered
programming for data processing
You can trim your data by using indexing array |idx|, as shown below. % Sample data set T = array2table(... [randi([0...

9 years ago | 0

| accepted

Answered
How to build a new matrix based on some available information
Let me post an alternative solution: E = [ 1 260 120 1 340 60 1 455 300 1 555 60 2 620 120 2 705 60 2 720 360 2 102...

9 years ago | 0

Answered
How to manipulate in matrix
How about using |splitapply| function. A = [ 10010 8 10010 5 10010 2 10065 8 10065 6 10099 4 10099 2 10099 9 10099...

9 years ago | 0

Answered
How to calculate differences in matrix
Another strait forward way to calculate this would be as follows: A = [ 1 245 1 370 1 1555 1 1620 2 255 2 295 ...

9 years ago | 0

Answered
extracting data from 4-D double
Thank you for your clarifications! The following code will find the minimum value of 4-D matrix 'a' where 30 < q < 30.1. ...

9 years ago | 1

| accepted

Answered
How do I make stairs lines transparent?
Also, this link would be some help. - <https://www.mathworks.com/help/matlab/visualize/add-transparency-to-graphics-objects.h...

9 years ago | 1

Answered
Write a MATLAB program that find 2nd highest until you input 0. Enter a number: 35 Enter a number: 10 Enter a number: 39 Enter a number: 30 Enter a number: 25 Enter a number: 0 2nd highest is 35
Straightforward solution will be as follow. Note that the following code accepts duplicated input. That means, if you input "5, ...

9 years ago | 0

Answered
classify the columns of matrix (N*M) to groups according to Numbers' sequence of column
One simple way is using *unique* function, like: Sout = unique(S','rows')'; Now, you can obtain unique column of the inp...

9 years ago | 0

| accepted

Answered
Storing data from looping and calculate again
Very simple way would be like this. If you want to apply this for much larger numerical array, then vectorization technique will...

9 years ago | 1

| accepted

Answered
i have a text file with 1000 set of values having 4 different values in each set. i want o read a set of values for given specfic number
How about the following code? Data = csvread('PIVlab1_1_0002.txt',3); % Ignore first 3 lines idx = Data(:,1) == 65; ...

9 years ago | 0

| accepted

Answered
How to remove rows contain 0 in matrix
Maybe I could understand what you want. To clarify, I wrote the code in step-by-step manner. I hope this matches to what you wan...

9 years ago | 0

Answered
How to change VarNameX's in large numbers?
I think the following script will help. This script executes from 'P1 = VarName1' to 'PN = VarNameN' in the for loop, and clear...

9 years ago | 0

Load more