Answered
Background Color of UIAxes
It is possible to create a regular "axes" within a "uifigure". Can you try that and see if you can accomplish what you need? Thi...

4 years ago | 1

Answered
Installing and running matlab app able to load and process .mat file
If the problem is that the standalone app can't find the file to load in the first place, you need to understand how paths work ...

4 years ago | 0

Answered
calling a function inside an app?
Functions need inputs and outputs, so you will need to define the function su as function out = su(app) out = app.a+app.b ...

4 years ago | 1

| accepted

Answered
Solving a second order differential equation
In you function Q5, your 2nd row has a typo, using y instead of y(1)

4 years ago | 0

Answered
How to plot solid and dashed lines?
You need to precede the linestyle you want with the keyword 'LineStyle' plot(x,y,'Color','k','LineStyle','--') so "LineStyle" ...

4 years ago | 8

| accepted

Answered
Image segmentation approach to segment lines based on patches
If the shapes you want to segment are parameterizable, and especially if you know how many there are (3 rectangles in this case)...

4 years ago | 0

| accepted

Answered
Working with tables that are within a timetable
I would first flatten the table, especially if you will be making many queries. Something like DataCell = cell(height(TT)...

4 years ago | 0

Answered
Array indices must be positive integers or logical values.
In your function esb(), you are using the variable "t" as an index, e.g., Q(t) but "t" is defined (via your argument structure...

4 years ago | 1

Answered
Extraction of values from a graph.
There is a function called "interp1", which seems like it will suit your need. You have options on interpolation method. T=20:2...

4 years ago | 0

| accepted

Answered
How to create and move a line when I put the mouse on an axes?
does the built-in matlab function ginput() do what you want?

4 years ago | 0

Answered
Eigenvalues of a Matrix for a mesh of values and 3D plot.
It seems you already understand the problem E(l,m) = eig(H); %Here is the problem because it can't store two values in one grid...

4 years ago | 1

| accepted

Answered
Delete all rows in cell array based on value
Do you need the cell array C? Must B be a cell array? If not... A = {table(rand(3,2)); table(rand(3,2)); table(rand(3,2))}; ...

4 years ago | 1

| accepted

Answered
Check for specific information in a string from a table
Assuming that parsing your text file to mine the data is a separate and solved problem, your question about identifying the stri...

4 years ago | 0

Answered
Merge table rows having same values?
Also, how about this T0 = table([1 3 1]', [2 4 2]', [1 4 nan]', [2 5 9]', [nan 6 9]','VariableNames',{'ID1','ID2','Var1','Var2'...

4 years ago | 0

Answered
Merge table rows having same values?
Updated based on Adam Danz's better use of fillmissing(). I think you want to keep the 'stable' keyword rather than 'sort', if ...

4 years ago | 0

Answered
How to create a video of fmincon results for each iteration?
Since it looks like you already are able to plot, is the question simply how to create a video from series of plots? If so, a s...

4 years ago | 0

Answered
fsolve not enough input arguments
You need to supply System() as a function handle to fsolve(). The way you have written it, Matlab thinks you want to simply call...

4 years ago | 0

| accepted

Answered
Set properties of child objects without synchronisation errors
Is your "ConnectingPipe" class really just the 2 properties, or is that just part of the class? If it's only 2 properties, would...

4 years ago | 0

Answered
Creating a For loop with fzero having multiple variables and selecting at random an output value
I see at least 2 problems. looping; you're correct there's an issue, misuse of linspace your initial guesses for fzero For th...

4 years ago | 1

| accepted

Answered
Fill the spaces between circles
just a quick look, but maybe the shaded regions are shared by exactly 2 or 3 circles, not more and not fewer...does that work? a...

4 years ago | 0

| accepted

Answered
MathLab 2019 backward compatibility
is it possible that in your 2017 environment, you have inadvertently overloaded the "factorial" function?

4 years ago | 0

Solved


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

4 years ago

Solved


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

4 years ago

Solved


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

4 years ago

Answered
Alternative way for nested for loops and if statements
For nested loops you can keep as much outside of the inner loop as possible, in this case the search for placeOfFirst looks like...

4 years ago | 0

Answered
Overlapping non-square block-diagonal matirce
As long as there are well defined rules for the blocks and their positions in the matrix, direct use of the sparse() function sh...

4 years ago | 0

Answered
Black mask over pcolor plot
You can assign NaN in your first matrix according to your mask and set the background of your axes to black: A = randi(255,200,...

4 years ago | 0

| accepted

Answered
Alternation without for loop
Here's a possibility: if A and B were guaranteed to be the same length (your example is not) and row vectors, you could do N = ...

5 years ago | 0

Answered
Can the background of "Text Area" be transparent?
With R2019b and using the uifigure rather than figure, there is a uihtml() element, which seems to have scroll by default (don't...

5 years ago | 1

| accepted

Answered
Write a simple txt files made by strings and numbers
With minimal changes to what you have (change space to tab too) tests = vertcat('CT4H12X9','CT5H12X9','CT5H12X8','CT6H12X7','CT...

5 years ago | 1

| accepted

Load more