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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 1

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

3 years ago | 0

| accepted

Answered
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; ...

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

Answered
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"); ...

3 years ago | 1

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 2

| accepted

Answered
Writing a table too large for MATLAB
It depends upon what you mean by the request "...but my internship mentor wants a full gathered table for future applications." ...

3 years ago | 0

Answered
save a cell to multiple csv files in a for loop
I'd ask if it's really productive to create multiple files rather than keeping the data together in an array and process the arr...

3 years ago | 0

Answered
How to add an element to an entire array?
You're going to have to illustrate what you want -- and best would be to provide a small sample code that illustrates the issue ...

3 years ago | 0

Load more