Community Profile

photo

Voss


Last seen: Today Active since 2013

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Treasure Hunt Participant
  • Master
  • 24 Month Streak
  • Commenter
  • Leader
  • Thankful Level 5
  • Most Accepted 2022
  • Revival Level 4
  • Knowledgeable Level 5
  • Promoter
  • Scholar

View badges

Content Feed

View by

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

12 hours ago | 0

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

1 day ago | 0

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

1 day ago | 0

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

1 day ago | 0

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

1 day ago | 0

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

1 day ago | 0

Answered
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]);

1 day ago | 0

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

2 days ago | 0

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

5 days ago | 1

| accepted

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

5 days ago | 0

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

6 days ago | 0

| accepted

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

6 days ago | 0

Answered
How to add data to an existing UITable in app designer?
old_data = app.UITable.Data; app.UITable.Data = [old_data; new_data];

6 days ago | 1

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

7 days ago | 0

| accepted

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

7 days ago | 0

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

8 days ago | 0

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

8 days ago | 0

Answered
split character strings into cell arrays without delimiter
ch = ['AEADHF';'TYESDF'] C = num2cell(ch)

12 days ago | 0

| accepted

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

12 days ago | 0

Answered
image grayscale and distortion
In the distortImage function, notice that the code for color images: distorted(1:halfwayRows, 1:halfwayCols, :) = bottomRight; ...

12 days ago | 0

| accepted

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

12 days ago | 0

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

12 days ago | 0

| accepted

Answered
for loop does not iterate
"Please explain to me why i cannot iterate through x_roots." A for loop in MATLAB iterates over the columns of what you give it...

12 days ago | 1

| accepted

Answered
ginput on tiled layout in app designer
Try setting the HandleVisibility of the uifigure (not the tiledlayout), e.g.: app.UIFigure.HandleVisibility = 'on'; set(...

12 days ago | 0

| accepted

Answered
Using a string variable as a variable name in an equation.
You can put those vectors into a struct, using their names as fields: Plex_Nms = {'ELEC'; 'FO'; 'HVAC'}; % names ELEC = [...

12 days ago | 0

Answered
How to incorporate a push button into GUI so that data indexes from a slider are saved to an array when the push button is clicked
Create a pushbutton, after creating the slider: btn = uicontrol(f, ... 'Style','pushbutton', ... 'String','Mark Heel ...

13 days ago | 1

| accepted

Answered
How can I obtain char matrix from excel?
filename = 'S5_origin.xlsx'; In R2015a, you can try using readtable to generate a table. Note the resulting table has 215 rows,...

13 days ago | 0

| accepted

Answered
Save files in different folder based on condition
% define your sub/folder locations, using absolute or relative paths: ok_folder = 'Unflagged_folder'; implement_folder = 'Impl...

13 days ago | 0

| accepted

Answered
Controlling mouse pointer and responsiveness for the whole window in App Designer
"Is there a way to globally disable/enable all controls ?" Yes. Where f is your uifigure: h = findall(f,'-property','Enable');...

13 days ago | 1

Answered
How to make surf plot have different x scales?
% define t,x,W variables: Nx = 11; Nt = 2000; W = (Nx:-1:1).*(Nt:-1:1).'/4500; t = linspace(0,200,Nt); x = linspace(0,1,Nx)...

13 days ago | 0

| accepted

Load more