MATLAB: How to delete variables whose name contains a specific word clearclear variablesexceptnamevariables Let's say that I have three variables: var_red, var_blue, var_green, var2_blue How can I specify to delete all the variables containing the word "blue"? Thank you very much Best Answer The Matlab "clear" command accepts wildcards, so you can doclear *blue; Related SolutionsMATLAB: Using a generated variable name as a handle for set function for j=1:25 var=num2str(j, '%02i') variable = sprintf('txt1%02i', j); if timematrix(menu.pm28, j)==1 set(panel31.(variable), 'Color', 'g'); else set(panel31.(variable), 'Color', 'r'); end end MATLAB: How to find the frequency of unique rows in 3 columns of a table Var1 = {'Car';'Dog';'Car';'TV';'TV';'TV';'Car'} Var2 = {'red';'blue';'red';'green';'yellow';'green';'red'}; Var3 = {'X';'Y';'X';'Z';'Z';'Z';'X'}; t = table(Var1,Var2,Var3); [tt ia ic] = unique(t); Var4 = histc(ic,unique(ic)); tt.Var4 = Var4;tt is the required table. Related QuestionHow to clear a variable if “clear” is itself a variableHow to update variable names after a “clear”How to make red-free light imageEntering a whole word into an arary.I did some changes in red,green,blue channel of the image .Now when is am using cat function it is giving me full white image.This is not the output i want
Best Answer