Respondida
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);...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

| aceptada

Respondida
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 ...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 1

Respondida
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...

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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(:, ...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 1

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 1

Respondida
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 ...

más de 5 años hace | 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...

más de 5 años hace | 7

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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 ...

más de 5 años hace | 4

| aceptada

Respondida
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...

más de 5 años hace | 0

Cargar más