Risposto
How can I wide the space between curves in the figure and between the numbers on the curves?
The only thing that can separate the lines more would be to have fewer of them; the data are what they are as far as the magnitu...

quasi 3 anni fa | 0

| accettato

Risposto
Matlab argument validation either specific vector size or empty
So far, I've found the arguments block more trouble than simply handling the conditions explicitly for something relatively simp...

quasi 3 anni fa | 0

Risposto
How to plot feature importance on x-axis and variable names on y-axis?
See barh and particularly <the example>. Use the second optional output from sort to get the order of the variables when you so...

quasi 3 anni fa | 0

| accettato

Risposto
Why the calculation error enhances as the phase angle increases when using atan2?
alpha1 = 0:pi/10:100*pi; alpha2=linspace(0,100*pi,numel(alpha1)); plot(abs(alpha1-alpha2),'r-') It's not where you think it i...

quasi 3 anni fa | 0

Risposto
Axis ticks stacked on top of eachother
imagesc uses the size of the image from 1:N in each direction for the x, y coordinates when only display the array. Note your t...

quasi 3 anni fa | 1

| accettato

Risposto
I am having a horzcat error while I try to create a structure from smaller structures.
OK, I found where the tutorial <eeglab_data.set> had been uploaded to GitHub so could get a peek at it without downloading the e...

quasi 3 anni fa | 0

Risposto
How to filter columns and count data
At the most basic, if your table is "tData" for lack of better name and your particular variable used not provided, tG=groupcou...

quasi 3 anni fa | 0

Risposto
how to apply a friedman test on a database with NaN's in matlab?
The obvious would be to exclude the NaN observations but you may run into an issue that the number of replicates for each group ...

quasi 3 anni fa | 1

| accettato

Risposto
How to setup serial port in base workspace and access from function workspace?
Simply pass the returned serial port object to the function(s) where it's needed. Best factorization would probably be to write...

quasi 3 anni fa | 0

Risposto
Adding saved figure to plot
See copyobj, There's a very recent (last few weeks) Answers Q? on precisely the topic addressing putting axes into subplots whe...

quasi 3 anni fa | 0

| accettato

Risposto
Understanding the following line of code regarding Gaussian distribution.
It does precisely what the comment ahead of it says it does -- generates a set of psuedo-random normally distributed values with...

quasi 3 anni fa | 1

Risposto
Delete 'ans' from the function's output
Sure. Follow the function call with the trailing semicolon, ";" Otherwise, MATLAB will always echo the result; ans is the def...

quasi 3 anni fa | 0

| accettato

Risposto
Need to change colormap on scatter after a hold on
Despite my gaffe in deleting the sample image, I think I can illustrate how to do what you're wanting... Z = 10 + peaks; ...

quasi 3 anni fa | 0

Risposto
stop minimizing GUI window after file selection through dialog window
See <LongStandingProblemThread>. This has been a bug for "since forever". There are some workarounds at the referenced link; y...

quasi 3 anni fa | 0

| accettato

Risposto
How to properly display and work with int32 images?
whos -file imageSample.mat load imageSample.mat image(PerfImg) We don't know if that is what would be expected or not; note t...

quasi 3 anni fa | 0

Risposto
Creating for loop with an if statement
I'd go at this differently... ROOTDATADIR='MATLAB/matlab 2023/data/'; % separate out the data from the code PA...

quasi 3 anni fa | 0

Risposto
Separate numbers present within a cell on multiple rows
whos -file CountArray.mat load CountArray.mat N = 30; [values_rec,ix] = maxk(CountArray(:,2),N); matrix=CountArray(ix,1); m...

quasi 3 anni fa | 1

Risposto
How to draw multiple lines (plots) using semilogy() at once?
The answer will NOT be to use eval, but hold on and then make the adjustments you think needed. Without an example of what you ...

quasi 3 anni fa | 0

Risposto
How do I find the rows in one table that have certain string?
T.STATUS=categorical(T.STATUS); % more efficient for categorical-type variables isInact=(T.STATUS=="Inactive"); ...

quasi 3 anni fa | 1

Risposto
Select data from excel sheet from specific row to specific row
It's possible to specify rows to load by address,but NOT by cell content. You read the full file and then select the data desir...

quasi 3 anni fa | 0

Risposto
How to read binary file from PDIR-NOW data?
Attach the file itself; don't expect folks go offsite somewhere to try to retrieve your data for you... But, I did go look (not...

quasi 3 anni fa | 1

Risposto
How to Interpolate an entire data set
unzip Tide_Data_Final Tides=readtable('Tide_Data_Final.csv'); head(Tides) nnz(Tides.Tide) height(Tides) F=scatteredInterpol...

quasi 3 anni fa | 0

| accettato

Risposto
Can I put multiple colormaps on one figure?
colormap doc says... target — Target Figure object | Axes object |PolarAxes object | GeographicAxes object | standalone visua...

quasi 3 anni fa | 0

Risposto
Error when trying to use stackedplot with more than 1 y-value per plot
The feature to use multiple tables in stackedplot wasn't introduced until R2022b (see the "More About" section). So, there's no...

quasi 3 anni fa | 1

Risposto
How to decrease the font size of the values that are above each bar in the chart?
FONTSIZE=8; x4=categorical(["Ciclista"; "Material"; "Ocupante"; "Peatón"]); y4 = [6 40 5; 1500 691 21; 0 307 4; 0 106 22]; b4...

quasi 3 anni fa | 0

Risposto
How can I use the Classification Learner App with a table dataset which has some cells that are arrays?
"Predictor and response variables can be numeric, categorical, string, or logical vectors, cell arrays of character vectors, or ...

quasi 3 anni fa | 0

Risposto
Plot two sparameters in one Smith Chart
You didn't save the handle to the chart when you created by making it an app property; hence you don't have it available in the ...

quasi 3 anni fa | 1

Risposto
not able to use "actxserver" command in linux
No. Even if the target machine has Excel installed and running under Wine, there's no port of the COM communications infrastr...

quasi 3 anni fa | 0

Risposto
Matlab Opens smithplot in new figure
smithplot d = dipole; freq = linspace(60e6,90e6,200); s = sparameters(d,freq); hUIF=uifigure; % make a uifig...

quasi 3 anni fa | 0

Risposto
How to compress the logarithmic scale of both axes in a plot?
PA=[0.1;120]; PE=[48;20].*10.^[0 1 2 3]; semilogy(PA,log10(PE)); % look at y axis first; the 0C is tougher nut to crack... y...

quasi 3 anni fa | 2

| accettato

Carica altro