Answered
Why do I keep getting this error message?
>Why do I keep getting this error message? (T(j+1,i-1)*-lamda)+(T(j+1,i)*(1+2*lamda))+(T(j+1,i+1)*-lamda)= dt*q_x(i-1)+T(j,i);...

5 years ago | 0

Answered
How to write repeating questions
I assume you're using input to prompt users to respond. This is the least robust, most error-prone method of getting informatio...

5 years ago | 1

| accepted

Answered
How to Merge Color using "Area" Command?
You can use a patch object with interpolated face color. This example in the documentation shows how to do this. Once you g...

5 years ago | 0

Answered
Graph Legend not picking up third plot marker
There are multiple objects with the green asterisk and they are higher up in the uistack than the red squares. Since you're prov...

5 years ago | 0

Answered
How to make textbox edge transparent in figure?
Right-click the textbox. From the context menu, select linestyle > none

5 years ago | 0

| accepted

Answered
Function vs Wrapper?
A wrapper function is a function that mainly calls another function with minimal additional work. Additional reading: https:/...

5 years ago | 1

| accepted

Answered
How to add a horizontal line to this graph
See yline()

5 years ago | 0

| accepted

Answered
Visualize data in App Designer similarly to Variable Editor
> The really ideal solution would be to visualize a struct the same way the variable editor does, with all the fields listed as ...

5 years ago | 0

| accepted

Answered
Splitapply within table taking column vector input and returning column vector output
Sharing the entire error message is most helpful because it typically tells us what line is causing the error. Based on the co...

5 years ago | 0

| accepted

Answered
Crusor position without click relative to axis
Follow instructions in this answer which explains two methods to continually return the coordinates of the cursor within the axe...

5 years ago | 0

Answered
How to set MATLAB GUI drop down to be empty be default
By default, uidropdown uses the first item as the default item but you can also specify the Value property to display another va...

5 years ago | 0

| accepted

Answered
How can I give main title for multi-graphs?
If you're using tiled layout, assign the title the tiled layout object. If you're using subplot() to create the axes, use sgti...

5 years ago | 1

Answered
How do I make this square wave graph?
Set the parameters at the top. % Parameters period = 2*pi; % Period xrange = [0, 6*pi]; % [start,end] x values amplit...

5 years ago | 0

| accepted

Answered
index in position 2 exceeds array bounds (must not exceed 1)
Change Treasury_(1,n) To Treasury_(n,1)

5 years ago | 0

Answered
How can I plot arrows on date time plot ?
You can use annotation objects whose positions are defined in normalized figure space. That requires you to convert the end poi...

5 years ago | 0

| accepted

Answered
How to find the (pixel) dimensions of images on a white background
Assuming height and width are defined by the first and last non-white (or any background color) pixel from top-to-bottom and fro...

5 years ago | 1

| accepted

Answered
How should I avoid reloading data in App Designer?
After loading the data, store the data as a property of the app. If the property is empty, that indicates that you need to loa...

5 years ago | 0

| accepted

Answered
two legends in the same box
Ms = randi(10,10,10); fig=figure(15); left_color = [1 0 0]; right_color = [0 0 1]; set(fig,'defaultAxesColorOrder',[lef...

5 years ago | 0

| accepted

Answered
Undefined function/variable with function
Given the incomplete error message, it seems that the error is not with the "control_3darray" variable but with x c_3darray(:, ...

5 years ago | 0

| accepted

Answered
Use a different colormap scale for different sections of a matrix
> This would be easy if I could set 0 values to NaN, and assign NaN color as 'none', but setting NaN color as 'none' is not supp...

5 years ago | 0

Answered
Calling a function without an Output argument
Use nargout to determine the number of output arguments. if nargout==0 % do something elseif nargout < 2 % do somet...

5 years ago | 0

| accepted

Answered
Undocumented style of changing matlab font
Starting in Matlab r2018a, another way to set the editor's font is to use the Settings group. This change will be maintained un...

5 years ago | 1

Answered
App designer - problem with plotting on axes, on top of an image
Here's the problem (see arrow) function DisplayImage(app) app.currentImage = fullfile(app.imageFolder(app.imageNumber).fol...

5 years ago | 1

| accepted

Answered
uitextarea not displaying correct font
I have the same problem of assigning 'FixedWidth' font to FontName properties in several uifigure components such as uibutton, u...

5 years ago | 0

Answered
Different rows height in tiled layout
Options that either fix the problem or provide an alternative to the example provided. Based on the image shared, it looks li...

5 years ago | 1

Answered
How do I compare two images on matlab?
> B is the exact same thing as A but the region of interest is shifted vertically downwards by a number of pixels. I am trying ...

5 years ago | 0

Discussion


New in R2021a: Name=Value syntax
*<https://www.mathworks.com/help/matlab/release-notes.html?category=language-programming&rntext=Name%253DValue+Syntax%253A&start...

5 years ago | 7

Answered
Compare dates between a matrix and a given range and read the values
# read in the text file as a timetable or a regular table. The date values should be read in as |datetime| values. # use boolea...

5 years ago | 1

| accepted

Answered
Data tip on the centroid of a patch face?
Datatips are anchored to the vertices of patches and other graphics objects so the only way I know of to make datatip positions ...

5 years ago | 4

| accepted

Answered
loop that checks conditions and counts the results
I get the gist of the question but don't understand the details listed at the end of the question. Here's how to count conditio...

5 years ago | 0

Load more