Respondida
How to extract maximum monthly data from a table based on month and years
T_original = readtable('Chakaliya.csv') T = T_original; T.(1) = T.(1)+years(1900+100*(year(T.(1))<=10)); % 91->1991, ..., 0->2...

más de 2 años hace | 0

| aceptada

Respondida
Plotting perpendicular lines but they are not perpendicular.
The lines don't appear perpendicular because the data aspect ratio of the axes (i.e., the number of pixels on the screen one uni...

más de 2 años hace | 2

Respondida
how toggle this warning using unstack function
load('matlab_T1.mat') T1 Option 1: Toggling the warning: warning("off","MATLAB:table:ModifiedVarnamesUnstack") Result = unst...

más de 2 años hace | 0

| aceptada

Respondida
I don't know what's the problem, can somebody help me, i don't know the exact length of myspeech/myrecord since it varies on how fast i read
Maybe you meant to name the variable returned by getaudiodata "mySpeech" instead of "y": % y = getaudiodata(recObj); mySpeech ...

más de 2 años hace | 1

| aceptada

Respondida
Read Excel and write the output in same sheet in three columns
@MINATI PATRA: Check and see if this seems right: filename = 'sample.xlsx'; % path to your file, e.g., 'D:\PK79\Book1.xlsx' ...

más de 2 años hace | 0

| aceptada

Respondida
How to convert MIDI file into audio file and preserve tempo?
zF = load('Click Track TEST.mat'); % LOAD MIDI FILE INFO cMALL = zF.cZ; disp(cMALL) Assuming 120 BPM (i.e., 1 beat every 0.5 ...

más de 2 años hace | 0

Respondida
Read Excel and write output
filename = 'Book1.xlsx'; % path to your file, e.g., 'D:\PK79\Book1.xlsx' % read the file to a table: T = readtable(filename...

más de 2 años hace | 0

| aceptada

Respondida
how to solve this problem?
Q_p = [1.05012447435464, 25.3238658780576, 26.3238658780576, 55.0712183513003, 6.7116155293271] idx = (Q_p >= 50) & (Q_p < 250)...

más de 2 años hace | 0

Respondida
Plot a direction field whose vectors have the same size
The vectors do have the same size, in terms of the x and y of the axes. However, the vectors with larger vertical component appe...

más de 2 años hace | 0

Respondida
How can i change this to a multiselect loop?
It's not clear exactly what read6840 is intended to do, so I can only offer an outline of how it might look operating on multipl...

más de 2 años hace | 0

| aceptada

Respondida
Matlab GUI to select and plot data from csv file.
Notice what the error message tells you: "You might see this error if any of the variables in the figure's SizeChangedFcn are un...

más de 2 años hace | 0

Respondida
Why do i receive the error:" unrecognized function or variable "Fun"?
Maybe you mean feval instead of fun.

más de 2 años hace | 0

| aceptada

Respondida
Help with populating a vector with 2 random variables
max_value = (numChannels-1)/2*channelSize; values = linspace(-max_value, max_value, numChannels);

más de 2 años hace | 0

| aceptada

Respondida
heatmap help - how to display grouped data across 3 levels (LO, MED, HI) ?
You can make a variable that has three distinct values, say 0 for LO, 1 for MEDIUM, and 2 for HI, which can be constructed as fo...

más de 2 años hace | 0

| aceptada

Respondida
How to avoid clicking buttons in GUI with uiwait in a script
A Java Robot can be useful to automate GUI interactions. https://undocumentedmatlab.com/articles/gui-automation-robot https://...

más de 2 años hace | 0

Respondida
Setting handles from one GUI to another GUI - Matlab
Here's how you can do it. (test1 and test2 m- and fig-files are attached; contents of test2.m reproduced below.) function varar...

más de 2 años hace | 0

Respondida
How to export a cell array consisting of matrices in each cell into different excel sheets in single workbook?
"... i want all these matrices in each element of the cell array T to get exported out into an excel workbook which has 3 excel ...

más de 2 años hace | 0

| aceptada

Respondida
Writing an excel sheet through MATLAB, then adding that sheet to an exisiting excel file (microsoft office 97-03 (.xls))
Have you tried this? C = {'cool','this','actually','works'}; filename = 'C:\Users\user\OneDrive - User\Verification\Results.xl...

más de 2 años hace | 0

| aceptada

Respondida
a function to save a plot as a (compressed) image file.
https://www.mathworks.com/help/matlab/ref/exportgraphics.html

más de 2 años hace | 0

Respondida
Read non-negative cells from a cell array
myFolder = '.'; filePattern = fullfile(myFolder, '*.csv'); csvFiles = dir(filePattern); N = numel(csvFiles); Data = cell(N,1...

más de 2 años hace | 0

Respondida
Write multiple columns of data in a single text file
data_to_write = [date(:,[1 2 3]) rain(:,1) tmax(:,1) tmin(:,1)]; fid=fopen(outfile,'wt'); fprintf(fid,'%d %d %d %5.2f %5.2f ...

más de 2 años hace | 0

Respondida
Getting variables from a custom function with a GUI
Use uiwait to pause execution of the code, in this case pause until the figure is deleted, and delete the figure in the submit b...

más de 2 años hace | 1

| aceptada

Respondida
How to reduce size of points on a plot?
% example data: xData = (1:10).'; yData = (1:10).'; zData = rand(10,1); % perform the fit: ft = 'loess'; [fitresult, gof...

más de 2 años hace | 0

Respondida
How I can draw two animated plots on one plot at the same time with different colours to compare them online?
AnimL = animatedline('Color','r'); AnimL2 = animatedline('Color','b'); for i=1:111 axis([0 i -1 1]) addpoints(AnimL,...

más de 2 años hace | 0

| aceptada

Respondida
How to get a colorbar to show only a specified range of values?
Use clim(). Example: % made up variable values: X_ert = 1:550; Z_ert = 2080:2180; ert_interp = exp(cosd(X_ert(ones(numel(Z_e...

más de 2 años hace | 0

Respondida
colorbar not working?
The black you see is grid lines of the surface. You can turn them off by setting the surface EdgeColor property to 'none'. clc;...

más de 2 años hace | 1

| aceptada

Respondida
How to match a matrix of features with a bunch of .mat files?
% unzip the zip file unzip('feature.zip') % get info about the mat files anywhere under the feature directory: files = dir(...

más de 2 años hace | 1

| aceptada

Respondida
Looping through Axes on figure created using subplot
hf1=figure('position',pos,'Name','4LineScan'); % pos defined elsewhere % store the axes in an array: ax = [ ... subp...

más de 2 años hace | 2

| aceptada

Respondida
How do I repetitively shuffle elements in my matrix column-wise?
Looks like this is what you are going for: [m,n]=size(F); % F = 582x255 matrix for i = 1:n C_i = F(:,i); C_i_s = C_...

más de 2 años hace | 0

Respondida
miss name columns in my table
app.UITable2.ColumnName=UIT2.Properties.VariableNames;

más de 2 años hace | 0

| aceptada

Cargar más