Answered
Can not get row vector to be 1,5
First, here's the correct way to set up the loop. Avoid the n=n+1 approach in for-loops because for-loops are designed to itera...

6 years ago | 2

Answered
App Designer Axis Issue xlim and dataticks
I see your data are durations along the x axis. To set the axis limits, Use xlim() where the first input is your axis handle ...

6 years ago | 1

| accepted

Answered
How do I determine if the desired value in a vector is the Max or Min of the values around it
Differentiate x and determine which values are falling (negative) or rising (positive). Local minima are where the pattern swit...

6 years ago | 1

| accepted

Answered
Multiplying a function stored in a function handle by a constant
One approach would be to get the outputs to your fBasis functions and then multiply by p as you describe in your question. Here...

6 years ago | 0

| accepted

Answered
Remove specific rows from matrix
If you're looking for exact matches use Lia = ismember(A,B,'rows') However, with floating decimals it's likely that your va...

6 years ago | 0

| accepted

Answered
Add xticks to a clustergram
Clustergrams use a heatmap object which is notoriously difficult to customize. The numeric labels along the rows and columns ca...

6 years ago | 0

| accepted

Answered
storing variables data after certain iterations
Almost no one in this forum will support the idea of creating variables to store each value of your array. That would require d...

6 years ago | 0

Answered
Bode Plot Display All Stability Margins
Documentation on bode plots is a bit sparse but here's some ways to modify the plots programmatically. Use getoptions() / set...

6 years ago | 1

Answered
How to show msbackadj plot within app window.
The msbackadj() function produces a figure when ShowPlot is true or equal to any integer value that specifies a column of input ...

6 years ago | 0

| accepted

Answered
Accessing ROI objects in GUIDE
This demo works outside of your GUI callback but it will be easy to implement it into your GUI. See inline comments for details...

6 years ago | 0

| accepted

Answered
How to concatenate cell array without causing nested cell array
This groups your vector years into groups of monotonically increasing years. years = [2007 2008 2005 2006 2007 2008 2005 2006 ...

6 years ago | 0

Answered
How can I import data in a range beyond 24 hours in MATLAB?
Here's how to convert a string to a duration using D = duration(H,MI,S) s = '195:54:21.114'; d = duration(str2double(strsplit...

6 years ago | 1

| accepted

Answered
all values ​​on the surf chart
Here's a demo [X,Y] = meshgrid(1:0.5:10,1:20); Z = sin(X) + cos(Y); s = surf(X,Y,Z); row = dataTipTextRow('C',s.CData); ...

6 years ago | 0

Answered
Can I remove outlier lines from a large plot?
It's important to define what constitutes an outlier prior to finding a solution for a few reasons. Without a definition you'r...

6 years ago | 2

| accepted

Answered
MATLAB App Designer: drawnow() is extremely slow
drawnow() updates all existing graphics. The more graphics that exist, the more updating. You could try setting the limit ra...

6 years ago | 0

| accepted

Answered
How to divide an array
Here's how to partition your row or column vector of data into a matrix with 365 rows and m columns. The last column may contai...

6 years ago | 0

| accepted

Answered
How to replace a column in a table with different values?
You were close. Use curly brakets and input a column vector. B{:,1} = (1:13).'; % or B.y1 = (1:13).'; Note that th...

6 years ago | 2

| accepted

Answered
writematrix, writetable, writecell not working?
writematrix() was released in r2019a. You are using r2018b which is why that function is not defined. Here are links to the ...

6 years ago | 2

Answered
Subtracting Vector from a Matrix
"How do I substract b from each row of a and put in a new matrix c?" As long as the number of columns in b matches the number o...

6 years ago | 0

Answered
How to make 3D-line plots (Sine Wave)?
Since this seems like homework, my solution below shows how to produce the figure but you'll need to adapt it to comply with the...

6 years ago | 1

Answered
Variable assigns value but wont plot
Instead of this line, plot(i,ui,'b') define a marker type plot(i,ui,'bo') %or b. b^ bs etc.... The reason the first line do...

6 years ago | 0

| accepted

Answered
How to find cell position in a column based on sum of column.
B(1,:) = sum(A); B(2,:) = B(1,:)/2; B(3,:) = sum(cumsum(A)<=B(2,:)); % sanity check % Checks that the cumulative sums o...

6 years ago | 1

| accepted

Question


AnnotationPane handle appearing in GUIDE GUIs with Panel-Axes in r2019b
I recently started using the r2019b release and noticed that an additional hidden handle is included in GUIs created in GUIDE if...

6 years ago | 1 answer | 0

1

answer

Answered
How to find strings in a very large array of data?
[This answer has been reorganized following the discussion in the comment section under the question] Method 1 fid = fopen('m...

6 years ago | 2

| accepted

Answered
Reading greek letters!
[continued from comment section under the answer] If you're just referencing single greek letters, you could use the double() v...

6 years ago | 0

| accepted

Answered
How can I see if data fit a specified curve?
There are several ways to classify your data into the three groups: 1) random, 2) y=x, and 3) y=1/x. I tend to favor low-level...

6 years ago | 2

| accepted

Answered
Changing font size of all axes labels
Set axis fontsize set(gca,'fontsize', 14) The axis fontsize affects the title, axis labels, and axis tick labels, and any leg...

6 years ago | 5

| accepted

Answered
Change matrix values on the basis of a heatmap
"I want to to crop the heatmap manually by using a binary mask (createMask, drawpolygon) to extract important parts." This won'...

6 years ago | 2

| accepted

Answered
Export colors of hist3 boxes in an array
After creating the bivariate histrogram with hist3(), call the function again with the same inputs but this time, store the firs...

6 years ago | 0

| accepted

Answered
Unrecognized function or variable 'getIpOptions'.
The file getIpOptions.m should be stored in the directory identified below. Run this line of code which should open the directo...

6 years ago | 4

Load more