回答済み
How to Create Surface Plot From Cells?
Based on the discussion in the comments under the question, I think this is the approach you're looking for. It works (i.e. the...

13日 前 | 1

| 採用済み

回答済み
change the color nodes
Your code is plotting each individual point within two for-loops. One option is to specify the color of the nodes within the fo...

13日 前 | 0

| 採用済み

回答済み
Set the color of the axes per default to black (instead of dark gray)?
Try putting this in your startup.m file set(groot,{'DefaultAxesXColor','DefaultAxesYColor','DefaultAxesZColor'},{'k','k','k'}) ...

13日 前 | 2

| 採用済み

回答済み
inner join two tables treating NaN entries as identical
Replace the NaNs with "inf", join the tables, then replace the inf with Nan. % Change NaNs to Infs A.Key2(isnan(A.Key2)) = in...

13日 前 | 0

| 採用済み

回答済み
Including look up tables in a formula
I propose creating an anonymous function that stores the interpolated table and receives a velocity as input and outputs the ass...

13日 前 | 0

| 採用済み

回答済み
convert string in app designer to dropbox output
This line is causing the problem app.nN = str2double(app.NoNodesEditField.Value); because app.NoNodesEditField.Value is alre...

14日 前 | 0

回答済み
loop indexing length of non zeroes
Here are the steps needed to build your table. % Create fake data that looks like your example x = rand(2000,5); x(:,4) = 0;...

14日 前 | 0

回答済み
Determining if two column adjacent values in a matrix cross over any values in a vector
After sorting the matrix so that minimum values of each row are on the left, you just need one line to find the intervals that '...

15日 前 | 1

| 採用済み

回答済み
The order of plotted things vs the order of the legend
"Is there a way that I can change the order of the legend without affecting the plot order" Yes. Use object handles to specify...

15日 前 | 0

| 採用済み

回答済み
How to display constant with caption in separate window
You can only plot text on axes (not on the figure background). However, the axes can be invisible so it appears as if the text ...

15日 前 | 0

| 採用済み

回答済み
How to access/manipulate data from cell arrays?
This extracts column 2 data from all elements of the cell array and arranges it in a row within a cell array as you described. ...

15日 前 | 1

| 採用済み

回答済み
How does the indexing of stacked bars work?
You can set individual colors by using an rgb matrix, one color for each bar within the current stack. The FaceColor should be ...

15日 前 | 0

| 採用済み

回答済み
Remove non time string values in a time matrix
I would use datetime() to convert your cell array of strings to a datetime array. This will return NaT (not a time) for element...

17日 前 | 0

| 採用済み

回答済み
sending mail from gmail using sendmail()
Check for interference with your antivirus program(s) and firewalls. These are common problems (see comments in that link).

17日 前 | 0

| 採用済み

回答済み
Inconsistent Dates in Time Series
% Create fake data F = [cellstr(datestr(now-10:now, 'dd-mmm-yy')); cellstr(datestr(now-10:now, 'dd.mm.yyyy'))]; % Identify ...

19日 前 | 1

回答済み
Timetable linear interpolation within a range
This solution has 3 steps: determine which rows are within 10 or more consecutive rows of missing data interpolate all missi...

19日 前 | 0

| 採用済み

回答済み
Why is it referring to each seperate datapoint in the legend?
Always use object handles. figure; ph1 = plot(acuteEdgeBC1, 'r*'); hold on; ph2 = plot(chronicEdgeBC1, 'bs'); legend([ph1(...

19日 前 | 1

| 採用済み

回答済み
How to update plot data manually?
What about giving refreshdata() a shot? Here's how it would work with your description. % Create your 4 axes and their initia...

19日 前 | 0

回答済み
Eliminate repetition in rows addition
You can replace those loops with this: A = [3 10; 5 6; 7 8]; triu(sum(A,2)+sum(A,2)',1) ans = 0 24 28 0 ...

19日 前 | 1

| 採用済み

回答済み
How to clear graphical objects
Prior to drawing the updated ployshape, clear the axes using cla() and always specify the axis handle. cla(axHandle); ploysh...

20日 前 | 1

| 採用済み

回答済み
How to find a column with a specific set of numbers
Use ismember() with 'rows' option. % m is your matrix colIdx = ismember(m.', [6 0 0], 'rows')'; % note the transpose of m ...

20日 前 | 0

回答済み
How can I create a Figure Title with a variable in it?
DEPTH = 10; % Depth changes based on user input title(sprintf('Numbers at a depth of %.0f meters', DEPTH)) % For the figure ...

20日 前 | 0

回答済み
Is Walter Roberson a real person, or is he some kind of Matlab AI robot?
There are small windows of silence from WR that follow a circadian cycle suggesting periods of sleep which would be evidence tha...

21日 前 | 4

回答済み
Compare 2 time series, array and map to third.
This should work for you. The last value of B is changed to -inf so that all values other than NaN will be greater than or equa...

21日 前 | 0

| 採用済み

回答済み
is there a way to obtain peak width after peak detection ?
Use the "halfheight" width reference. There's an example here: https://www.mathworks.com/help/signal/ref/findpeaks.html#buhd6x...

21日 前 | 0

回答済み
what causes "Z must be a matrix, not a scalar or vector" in mesh()
From the documentation for mesh() (<-- the first place you should go to understand the inputs to a function): " If X and Y are...

21日 前 | 1

| 採用済み

回答済み
remove the blank area surrounding the figure
"How can I I remove the blank area surrounding the figure, which means to enable the figure to fill the whole window" If you'...

25日 前 | 0

| 採用済み

回答済み
Using imagesc to make a matrix a heatmap, how can I mark an 'x' inside the cell of max value of each column?
Here's a simpler version that uses an "X" in text format. Just replace my fake "C" with your real data. C = magic(9); I = i...

26日 前 | 0

| 採用済み

回答済み
how to solve equation for a given matrix
What's wrong with what you've already got? %Vector method e = rand(100,1)*10; Eq = 0.4075*exp(-((e-14.87)/11.39).^2) + 0.56...

26日 前 | 0

| 採用済み

回答済み
Matlab: use axes handles of another figure for a new figure
If you're trying to create several figures with the same format but different data, you'd want to copy the entire figure, and th...

26日 前 | 1

| 採用済み

Load more