photo

Voss


Last seen: Today Active since 2013

Followers: 6   Following: 0

Message

Statistics

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

View badges

Feeds

View by

Answered
Find index of a nearest value
x = [1 2 3 4 5 6 11 15 21 51 52 54 100 101 151 201 251 301 401]; target = [10, 20, 50, 100, 150, 200, 250, 300, 400]; [~,idx...

6 dagen ago | 1

Answered
How to interpolate values given a starting and end point
xl = [18.2, 17.9]; yl = [50.6, 50.3]; real_values = (recordings-xl(1))./(xl(2)-xl(1)).*(yl(2)-yl(1))+yl(1);

9 dagen ago | 0

Answered
Unable to Add Legend to Plot
Looks like you have a script called "legend.m" (located in "\\filepath\filepathxxxx") which is conflicting with running the buil...

9 dagen ago | 0

| accepted

Answered
Unrecognized function or variable 'START_GUI'.
Did you set the current MATLAB directory to the location of the AnaSP files? https://www.youtube.com/watch?v=ZqANSYfMnss&t=35s

10 dagen ago | 0

Answered
Concatenate name fields in nested structure
S = struct( ... 'A1',1, ... 'A2',struct('B1',2,'not_data',3,'data',4), ... 'A3',struct( ... 'B1',struct(...

10 dagen ago | 1

| accepted

Answered
The maximum value is not changing even after adding 1
x0_test is an array of unsigned 8-bit integers load data class(x0_test) The minimum value an 8-bit unsigned integer can have ...

10 dagen ago | 1

| accepted

Answered
writestruct() fails to write empty child element to XML file
s.elementA = 14; s.elementB.child = struct(); writestruct(s,'test.xml','StructNodeName','Problem') type('test.xml')

11 dagen ago | 0

| accepted

Answered
The perpendicular point is not on the proposed line.
The second calculation (which is for the green line) is using the slope from the first calculation (which is for the blue line) ...

11 dagen ago | 0

Answered
Readtable Delimiters on two similar files gives differing result
One problem seems to be that the date/time line in the header has 3 commas in it, which for file B causes readtable to try to tr...

11 dagen ago | 0

| accepted

Answered
ERROR: Error using {} Variable index exceeds table dimensions. How to apply function to all cells/tables?
It looks like this code was written expecting results_velocity_diff to be a cell array of cell arrays of tables, but in fact res...

12 dagen ago | 1

| accepted

Answered
How to detect a data value change in matlab
DATA = [ 0 0 0 0.1224 0.1219 0.1199 0.1199 0.1199 0.1175 0.1175 0.1175 ...

12 dagen ago | 0

| accepted

Answered
Plotting multiple lines with a for loop: only last plot shows
Remove legend(p(i)) from inside the for loop. Replace the legend after the for loop with legend(p(t)).

12 dagen ago | 0

| accepted

Answered
I want to calculate velocity. How do I apply my code to all tables in all cells?
load('results_distances.mat') results_distances is of size 3x12 results_distances so its length is 12. Recall that length() r...

12 dagen ago | 1

| accepted

Answered
I want to calculate distances in 3D space. How do I apply my code to all tables in all cells?
results_nooutliers is not a cell array of tables, but rather a cell array of cell arrays of tables. load('results_nooutliers.ma...

13 dagen ago | 0

| accepted

Answered
X-Axis Boxplot Shift
% random data N = 100; x = randn(N,1); cats = categorical(randi(2,N,1),[1 2],{'None','LF'}); % create the box plot figure...

13 dagen ago | 0

| accepted

Answered
difference between 2 values in a vector
x = [0.2 0.0 0.0 0.0 0.25 0.0 0.0 0.0 0.3 0.0 0.0 0.4 0.0 0.0 0.0 0.1 0.0 ...

13 dagen ago | 0

Answered
average between cell arrays of doubles
C_mean = cellfun(@(c)mean(cat(3,c{:}),3),C,'UniformOutput',false);

13 dagen ago | 0

| accepted

Answered
read columns on command
To access data from a table use curly braces {} with two subscripts or dot indexing, as in inflation = diff(Inflation1{:,1}...

14 dagen ago | 1

| accepted

Answered
How to count the number of scatter points of each color
idx = [S1(num_fixed_nodes+1:num_nodes).node_status]==1; n_green = nnz(idx); n_red = nnz(~idx);

15 dagen ago | 1

Answered
Pixel by pixel comparison of 5 matrices into new matrices.
% 5 example 10x10 matrices M1 = reshape(1:100,10,[]); M2 = reshape(101:200,10,[]); M3 = reshape(201:300,10,[]); M4 = reshape...

16 dagen ago | 0

Answered
struct to restrict curve in max problem
warning off format long set(0,'DefaultAxesFontSize',20); figure; load('H_LC(1).mat'); dim=2; %number of variables of my sys...

16 dagen ago | 0

| accepted

Answered
Error in demodulation QAM-16 signal
"the number of values ​​should be equal to the modulation factor M" For a modulation order M, the number of bits per symbol is ...

16 dagen ago | 0

Answered
How does this code solve the problem of incorrectly using vertcat to concatenate arrays with inconsistent dimensions?
On the line that throws the error you have: y=[o3*180/pi; 04*180/pi]; where o3 is of size 1x3601 and 04 is a scalar (the ...

16 dagen ago | 0

| accepted

Answered
Create 'siteviewer' object without displaying it?
You could specify its Position so that it's off-screen, e.g.: % get monitor position(s) pos = get(groot(),'MonitorPositions');...

17 dagen ago | 0

Answered
Create excel file from json variable value
It's difficult to say for sure without one of your json files to test with, but something like this might work: subjs = {'SUB21...

17 dagen ago | 0

| accepted

Answered
How to colour a portion of a curve by red and remaining by black
set(0,'DefaultAxesFontSize',20); figure load('EP_EP(1).mat','x'); %load only x [~,idx] = max(x(3,:)); plot(x(3,idx:end),x(...

17 dagen ago | 0

| accepted

Answered
Adding text to label sliders in a uifigure.
uilabel is the function to create a label component programmatically.

17 dagen ago | 0

| accepted

Answered
Remove NaN from matrix
In a matrix, all columns are the same length. That's one of the defining characteristics of matrices. You're not going to be abl...

18 dagen ago | 1

Answered
crea un vector fila con 15 elementos igualmente distanciados en el cual el primer elemento sea 7 y el ultimo 40
See <https://www.mathworks.com/help/matlab/ref/linspace.html linspace>.

18 dagen ago | 0

Load more