답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

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

5년 초과 전 | 0

| 수락됨

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

5년 초과 전 | 1

| 수락됨

답변 있음
How to add a horizontal line to this graph
See yline()

5년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
index in position 2 exceeds array bounds (must not exceed 1)
Change Treasury_(1,n) To Treasury_(n,1)

5년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 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년 초과 전 | 7

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 4

| 수락됨

답변 있음
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년 초과 전 | 0

더 보기