Estadísticas
0 Preguntas
3.465 Respuestas
0 Problemas
1933 Soluciones
CLASIFICACIÓN
22
of 284.779
REPUTACIÓN
10.846
CONTRIBUCIONES
0 Preguntas
3.465 Respuestas
ACEPTACIÓN DE RESPUESTAS
0.00%
VOTOS RECIBIDOS
998
CLASIFICACIÓN
of 19.231
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
38
of 137.569
CONTRIBUCIONES
0 Problemas
1933 Soluciones
PUNTUACIÓN
20.061
NÚMERO DE INSIGNIAS
16
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Content Feed
Assigning letters to numbers
alphabets = [' ', 'A':'Z']; Map(alphabets) = 0:numel(alphabets)-1;
alrededor de 5 horas hace | 0
| aceptada
Index a Y = MxN, with X=Mx5 (where elements in X are column IDs for values to extract from Y)
You can use sub2ind for that. https://www.mathworks.com/help/matlab/ref/sub2ind.html Example: Y = randi(50,6,10) Z = Y/100; ...
alrededor de 11 horas hace | 1
| aceptada
read csv file and output csv file
You are overwriting k inside the k for-loop: for k = 1:numel(files) filename = fullfile(files(k).folder,files(k).name); ...
1 día hace | 1
I am getting "Array indices must be positive integers or logical values" in my code.
You have created a variable called "factorial", the existence of which prevents you from using the "factorial" function. Run c...
2 días hace | 2
| aceptada
Plot multiple cases from data structure at once?
For each participant, load the participant's mat file and plot the EDA data into the next tile of a tiledlayout. % number of pa...
2 días hace | 0
how to find where a value falls in a list
A = [ 1 0 2 0.053 3 0.105 4 0.157 5 0.208 6 0.258 7 0.306 8 0.353 9 0.399 10 0...
3 días hace | 0
| aceptada
"Assigning to 2 elements using a simple assignment statement is not supported. Consider using comma-separated list assignment." Error only sometimes happens.
If you have two y-axes, then ax.YAxis is non-scalar, so ax.YAxis.LineWidth = 1.5; gives you an error. Notice that the previou...
3 días hace | 0
Inconsistancy of colorbars across contourf() plots
Use clim() instead of setting the y-limits of the colorbars. https://www.mathworks.com/help/matlab/ref/clim.html X = 1:10; Y ...
3 días hace | 0
| aceptada
Concatenating a signal given its segments' limits
ww = [ 10 15 16 22 33 44 45 50 51 60 70 80 ]; N = 1; to_keep = ww(2:end...
4 días hace | 1
| aceptada
griddedInterpolant error "Interpolation requires at least two sample points for each grid dimension."
The points (bp1, bp2, bp3) in 3d space do not form a grid. They are equally-spaced points along a line segment from (0,5,2) to (...
5 días hace | 0
export excel from Matlab compiler
The code looks like it will work the same in a compiled executable as it does in (uncompiled) MATLAB. The difference is that th...
6 días hace | 0
On line 53: error = abs(-15 - Theta(i)); . I'm getting an error that says, "Index exceeds the number of array elements. Index must not exceed 17901". what am I doing wrong?
First, let me run the code almost up to where the error happens: clc clear all %Given: M1 = 3; G = 1.4; tot = 180; Theta=...
6 días hace | 0
create empty pie chart (or not generate the graph)
Maybe something like this: matrix_new = []; figure if isempty(matrix_new) % matrix_new is empty: create the circle ...
6 días hace | 0
How to change bacground color of uitreenode?
% remove any existing uistyles from the uitree: removeStyle(app.Tree) % create a new uistyle for Blue Background: s = uisty...
6 días hace | 0
| aceptada
Resolution of plot code errors
Use fplot instead of plot: syms x; y=1/sqrt((1-x^2)^2+(2*x)^2); fplot(x,y); xlim([0 5]); ylim([0 4]);
6 días hace | 0
Why does UIaxes handle is deleted when calling a function and taking inputs as UIaxes handle in MATLAB webapp ?
copyUIAxes called with one input creates a new figure, as the comment near the top of copyUIAxes.m states: % COPYUIAXES(uiax) c...
6 días hace | 0
How to Shade area between 3 curves each with different x-axis values?
I guess you want to shade the area between the lowest curve and the highest curve for all x. T = readtable('Book1.xlsx') % c...
8 días hace | 1
| aceptada
How do you search for a number in a cell array containing different length arrays?
C = {[2 5 8 9], [1 2 4 5 7 10], [3 5 6 7 8 9 10], [1 2 3 5 8 9 10], [1 2 4 6 8 9], [1 3 4 5 6 8], [1 2 4], [4 5 7 9], [1 2 5 7 1...
9 días hace | 0
While using "hold on" to create a graph with multiple graphs together, the logarithmic scale on x axis is not applied.
One way to fix this is to set the 'XScale' of the axes to 'log' explicitly. pi_1=[1 1 0.643 0.472 0.371 0.297]'; pi_08=[1 1 0....
10 días hace | 0
| aceptada
While using "hold on" to create a graph with multiple graphs together, the logarithmic scale on x axis is not applied.
One way to fix this is to put the hold on afer the first semilogx() call. pi_1=[1 1 0.643 0.472 0.371 0.297]'; pi_08=[1 1 0.63...
10 días hace | 0
How to add data to an existing UITable in app designer?
old_data = app.UITable.Data; app.UITable.Data = [old_data; new_data];
10 días hace | 1
Resize and align the data matrix based on the stimuli ID
M = readmatrix('log.csv'); % --- first, identify where the stimuli start and end --- % find indices where 1st column of M ...
10 días hace | 0
| aceptada
Having trouble encrypting and decrypting messages
Notice that a space character should be encrypted as a space character. The input message you are given has spaces, but the encr...
11 días hace | 0
Function output variable is unrecognized
Calling the function feigR13 with the first input (i.e., the variable num) less than 1 will produce that error because the outer...
12 días hace | 0
How to solve this error?
Use ./ instead of / See https://www.mathworks.com/help/matlab/ref/rdivide.html and https://www.mathworks.com/help/matlab/ref/mr...
12 días hace | 0
split character strings into cell arrays without delimiter
ch = ['AEADHF';'TYESDF'] C = num2cell(ch)
15 días hace | 0
| aceptada
How can I get these to match
y_echo = echo_gen(data, fs, 0.2, .75); After that line, y_echo is longer than data, as you observe. One way to make them the s...
15 días hace | 0
image grayscale and distortion
In the distortImage function, notice that the code for color images: distorted(1:halfwayRows, 1:halfwayCols, :) = bottomRight; ...
15 días hace | 0
| aceptada
3D surface plot from only scalars
x = [125, 125, 330, 335, 542.42, 545, 745, 750, 955, 957]; y = [90, -70, 65.983, -50, 55, -38, 40, -20, 30, -12 ]; z1 = [0.05...
15 días hace | 0
How to download multiple files from a website
url = 'https://www.ngdc.noaa.gov/thredds/catalog/global/ETOPO2022/15s/15s_surface_elev_netcdf/catalog.html'; % webread() the ...
15 días hace | 0
| aceptada