Réponse apportée
large errorbars on semilogx
What you see is because of the log XScale: Partial errorbars: If the left endpoint of the errorbar would be <= 0, it is not ren...

environ 2 ans il y a | 0

Réponse apportée
arrow on vertical line doesn't look vertical
You can get problems like those when the annotation is in an axes, which doesn't appear to be officially supported. Note that on...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Polar Axis with Specific Jumps
ax = polaraxes( ... 'RLim',[0 1], ... 'RTick',linspace(0,1,21), ... 'ThetaAxisUnits','radians', ... 'ThetaLi...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
How to extract data from a file, and form a column vector?
See the attached test_modified for one way to do that. test_modified

environ 2 ans il y a | 1

| A accepté

Réponse apportée
ask about random matrix
% number of rows: N = 8; Here are some example random matrices where each row has one element, which is what you asked for: r...

environ 2 ans il y a | 0

Réponse apportée
Vectorization of an if condition with cirle function
Use logical indexing. Something like as follows: % make up missing variable values: nz = 20; nx = 24; dz = 0.1; dx = 0.1; ...

environ 2 ans il y a | 2

| A accepté

Réponse apportée
How to get 3 different plots in 1 plot axes using drop down button followed by analyse button in GUI?
Prompt the user to select the file (e.g. by calling uigetfile) _only_ in the callback of the button the user clicks to select a ...

environ 2 ans il y a | 0

Réponse apportée
Mapping issue with pcolor()
The discontinuity in lon where it changes from +180 to -180 causes the problem with pcolor, which you see as the blue streak in ...

environ 2 ans il y a | 2

| A accepté

Réponse apportée
Interpolating between two columns in a matrix
% generate a matrix with NaNs like yours: M = rand(10,10); M(randi(100,1,40)) = NaN % fill the NaNs using linear interpolatio...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Unexpected MATLAB expression.
On line 5, use 5*y instead of 5y

environ 2 ans il y a | 0

Réponse apportée
How to create a GUI in matlab where the user can select a single testcase he wants to run?
I misunderstood the situation before; I thought you were running a script from an app, not the other way around. If all you nee...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How to build a graph using stem for a given equation?
Your delta function makes d a scalar. Instead d should be the same size as n, with value 1 where n is 0 and value 0 everywhere e...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
producing an error message based on response in prompt message box
prompt = {'Enter Figure Type:','Enter Output Type:'}; dlgtitle = 'Input'; fieldsize = [1 45; 1 45]; answer = inputdlg(prompt,...

environ 2 ans il y a | 0

Réponse apportée
Incorrect rendering of legend in an error bar plot having both verticle and horizontal error bars.
The basic problem is that you are creating more errorbar objects than you are making legend entries for. The solution is to make...

environ 2 ans il y a | 0

Réponse apportée
Index in position 2 exceeds array bounds.
load Pr_error_2 "how can I delete all the rows that without data inside?" Like this: empty_idx = cellfun(@isempty,Pr_error_2)...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Having a "dot indexing is not supported for variables of this type." error
imds is the character vector 'daspics': imds =('daspics'); (the parentheses do nothing in that context and are unnecessary) Y...

environ 2 ans il y a | 1

Réponse apportée
How to get a msgbox with several lines of texts showing different variables?
msg = sprintf('Total files processed: %d\nElapsed Time: %.2f', numel(S), toc); l = msgbox(msg);

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Matrixwise subtraction yields vector - how to reshape to original logical matrix?
A_temp = A; B_temp = B; idx = A >= 0.5; A_temp(~idx) = NaN; B_temp(~idx) = NaN; result = mean(A_temp-B_temp,1,'omitnan');

environ 2 ans il y a | 2

Réponse apportée
How to import text data with different column lengths without having NaN
Here's a method you may find useful: Read the file into a table: T = readtable('test.txt') Then convert table into a scalar s...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How can I add rumble strips in roads?
https://www.mathworks.com/help/roadrunner/ref/roadcrgtool.html

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How to find a sequence from a txt file?
The use of strfind here is not correct: % Read the DNA sequence from the file dna_sequence = strfind(fileID, '%s'); It looks ...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Matrix dimensions must agree
% Parameters numVehicles = 50; % Number of vehicles numEdges = 3; % Number of edge computing nodes numC...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Converting a table to a timetable
Here's an example: % a table T = table([1;2;3],[4;5;6],'VariableNames',{'Time','x'}) % Time column is not duration or datetim...

environ 2 ans il y a | 0

Réponse apportée
Issue with legend colours in scatter plots with tranparency set 'ON'
The marker in the legend will be the same as what's in the plot. If you want them to be different, you can create a line with Na...

environ 2 ans il y a | 0

Réponse apportée
Move colorbar closer to figure?
hcb=colorbar('SouthOutside'); % Set the number of colorbar ticks and length of tick marks set(hcb,'YTick',[-6:0.25:6],'Tic...

environ 2 ans il y a | 0

Réponse apportée
Reducing line spacing between multiline figure title
This makes the second line a superscript (^{}) so it's closer to the first line, increases its font size (to 11) to account for ...

environ 2 ans il y a | 2

| A accepté

Réponse apportée
Adding text below southoutside colorbar labels
caxis([-6 6]) % R2019b hcb=colorbar('SouthOutside'); set(hcb,'YTick',-6:0.25:6,'TickLength',0.01); set(hcb,'YTickLabel',{'-...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
Highlight Specific Contour Levels of a 2D array
Z in the example is a 2D array, so just substitute your 2D array in for Z. That is, replace Z = peaks(100); with Z = simda...

environ 2 ans il y a | 0

Réponse apportée
vectorized vs for loop data allocation, they should come out to the same matrix but they do not.
Inside the loop that where t is constructed, the indexing on the right side of the assignments is not the same as what spdiags d...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Graficar Esferas en 3D
Here's one way you can read that file and get useful information out of it: M = readmatrix('Matrix Sphere.txt'); idx = find(...

environ 2 ans il y a | 0

| A accepté

Charger plus