Answered
Comparing words in text file line by line
"I got a text file with only one word in each line. How can I open and compare each word from this file with required word in a ...

6 days ago | 1

| accepted

Answered
insert text as watermark in video( one frame)
Based on the error message, it appears that "block" is an [m x n x 1] array (or simply, [m x n]). You're accessing "block" in a...

6 days ago | 0

Answered
How do I associate specific colors with specific numbers of a matrix?
You set 9 colors in your colormap but you only have 6 unique intergers in "A". That means you're asking matlab to distribute 9...

6 days ago | 0

| accepted

Answered
Insert missing date and corresponding values in a matrix?
If you're looking for timelines that contain segments of start/stop times, here's a method. data = { '03-Jan-2018 16:58:09' '0...

7 days ago | 0

| accepted

Answered
How to Remove Rows in Table
Read in the data; determine which rows are empty under "LikesAnimals"; then remove those rows. t = readtable('data table.xlsx...

7 days ago | 1

| accepted

Answered
App Designer: Radio buttons that prompt User input (Novice)
In the "selection changed" callback function to the radio buttons group, you can ask the user for more information using the inp...

7 days ago | 0

Answered
Problem with dropdown itemdata propiety
If you're using ItemData, the "Value" property will return the ItemData associated with your selection and it will be in the for...

7 days ago | 0

| accepted

Answered
Create pie chart in if loop
From the documentation, "pie(X) draws a pie chart using the data in X. Each slice of the pie chart represents an element in X." ...

7 days ago | 0

Answered
Normalization of colorbar showing bincounts of binscatter
I would use histcounts2() to determine the density within each bin. Then you can normalize those data and send it into histogra...

7 days ago | 0

| accepted

Answered
How to display a vector in edit text in MATLAB?
Vi=[0 0 1 0 0 1 1 0 0 0 0 0]; >> s = ['Vi[',regexprep(num2str(Vi),' +',' '),']'] s = 'Vi[0 0 1 0 0 1 1 0 0 0 0 0]'

9 days ago | 0

| accepted

Answered
N-way ANOVA giving NaN and Inf
According to the documentation, "By default, anovan treats all grouping variables as fixed effects." Your grouping variables do...

9 days ago | 0

| accepted

Answered
How to find the area of an image and display the output in the GUI?
Answer to first question: (Summarized from comments under the question) The error is due to improper input to imread(). The e...

9 days ago | 0

| accepted

Answered
how to draw map in app designer?
There is no axes input to the worldmap function (unfortunately). The function will create a new figure to display the map. Aft...

10 days ago | 1

| accepted

Answered
How to extract certain files according to numbers in the filename?
n = 3; % for month #3 filename = sprintf('bar_%dpressure.xlsx', n) Result filename = 'bar_3pressure.xlsx'

10 days ago | 0

| accepted

Answered
Storing Matrix in Workplace on each iteration
"How can I ... a) saves a matrix(i) on each iterration as a value in the workplace" What I think you mean is to store each iter...

10 days ago | 1

| accepted

Answered
Error "Subscript indices must either be real positive integers or logicals." At random index
Indexing requires positive integer values just as the error message indicates. At lease one of the three indices of X is not a p...

10 days ago | 0

| accepted

Answered
How to decompose and expand a vector into ones
" I = [2, 2]' How can I multiply that by 12 and get a 1x48 vector filled by ones ?" My interpretation: you want to multiply (o...

11 days ago | 0

| accepted

Answered
Find the cell where the sum equals a threshold
Compare the cumulative sum against your threshold. The line below returns the first index of A that is greater than or equal to...

11 days ago | 0

| accepted

Answered
Matching values in different columns?
If you have r2019a, use groupcounts(). %Original data A= [10 13 10 1 111 102 10 13 7 10 112 100 14 116 102 10 14 120]; B= [2...

11 days ago | 0

| accepted

Answered
How to remove labels from a plot?
Text objects are just like any other graphics object. When you create a new text object, store its handle so you can later del...

11 days ago | 0

| accepted

Answered
Find non unique string in a table
nonUnqIdx is a logical index of rows of TT.Alpha that are a repeat (ie, not the first instance). [~, AlphaGroups] = ismember(T...

11 days ago | 1

| accepted

Answered
Setting desired margins and ratio for plot
"axis equal" will set the aspect ratio equal between both axes. "xlim" and "ylim" will set the axis limits which you can use t...

11 days ago | 1

| accepted

Answered
find the closest point and taking the difference of y coordinates
I recommen using pdist2() to calculate a matrix of distances between all points in A and all points in B. See comments within th...

11 days ago | 0

| accepted

Answered
How to print variable into different rows?
If you just want to display the variables in the command window, merely list the variables without a terminal semicolon which wo...

11 days ago | 0

| accepted

Answered
Sum of cell array Line
% When elements of A are row vectors of the same length % (like the example in the question) s = sum(cell2mat(A{4}.'),1); %...

11 days ago | 0

| accepted

Answered
Why does the length of the tangent line keep changing?
"Why does the length of the tangent line keep changing?" The length is not changing. The reason it appears to change is becaus...

12 days ago | 0

| accepted

Answered
Index from Matching Element in Table
% Get data from UITable UIdata = app.UITable.Data; % Find row of column 1 that matches "jumping" % *note, strcmpi() is not...

12 days ago | 0

| accepted

Answered
I am using R2018b. Why does my graph appear so pixelated?
My bet is that the plot is merely showing your data. Your data appear to be integer values along the y axis so the data will al...

12 days ago | 1

| accepted

Answered
How do I add a shapefile?
(continued from the comments section under the question). The convertStringsToChars() function became available in r2017b. Ch...

12 days ago | 0

Answered
[Help] writetable text alignment and saving pre 0
"By writing a table to excel, it removes pre 0. I mean it saves 0409 to 409. Is there any way to preserve initial zeros?" Numer...

12 days ago | 1

| accepted

Load more