Community Profile

photo

Voss


Last seen: Today Aktiv seit 2013

Followers: 2   Following: 0

Kontakt

Statistiken

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

Abzeichen anzeigen

Feeds

Anzeigen nach

Beantwortet
How to Convert a Scalar Struct with Vector Fields to a Vector Struct with Scalar Fields?
S.x = [1 2]; S.y = [10 20]; N = numel(S.x); f = fieldnames(S); NF = numel(f); clear A A(N) = S; for ii = 1:N for...

etwa 9 Stunden vor | 0

Beantwortet
How to Convert a Scalar Struct with Vector Fields to a Vector Struct with Scalar Fields?
S.x = [1 2]; S.y = [10 20]; C = [fieldnames(S) , cellfun(@num2cell,struct2cell(S),'Uni',false)].'; A = struct(C{:}) [A.x] ...

etwa 9 Stunden vor | 0

Beantwortet
How to Convert a Scalar Struct with Vector Fields to a Vector Struct with Scalar Fields?
S.x = [1 2]; S.y = [10 20]; C = [fieldnames(S) , struct2cell(structfun(@num2cell,S,'Uni',false))].'; A = struct(C{:}) [A.x...

etwa 9 Stunden vor | 0

Beantwortet
How to interpolate and smooth across values in a matrix, while ignoring NaN values?
Avoid putting NaNs into the scatteredInterpolant: idx = ~isnan(scan2); interpImage = scatteredInterpolant(micsX(idx),micsY(idx...

etwa 12 Stunden vor | 0

| akzeptiert

Beantwortet
Aligning then subtracting unequal length column vectors
xspots = [ 2600.00 2679.00 2802.00 2924.00 3046.00 3169.00 3291.00 3413.00 3536.00 3658.00 3781.00]; xgrid = [ 26...

etwa 12 Stunden vor | 0

| akzeptiert

Beantwortet
Problem 56313. Find Air Temperature from Cricket Stridulation Rate
function y = getTemperature_F(x) y = x+40; end

etwa 13 Stunden vor | 0

Beantwortet
how to modify data of a matlab figure?
% open figure once for reference openfig('PMSG1_Q1ter.fig'); % constant to multiply one line's YData by const = 0.98; % op...

etwa 16 Stunden vor | 0

Beantwortet
INDEX EXCEEDS THE NUMBER OF ARRAY ELEMENTS.
My guess is that x is a matrix but your code is assuming it's a vector. Example: x = rand(2,232); signal_length = length(x)...

etwa 16 Stunden vor | 1

| akzeptiert

Beantwortet
Creating a loop for repeated vector values
No loops necessary. If those are row vectors, then: newPARCdata = [PosAccelReqCurrent(15)*ones(1,6500) zeros(1,100) 15*ones(1,...

etwa 16 Stunden vor | 1

| akzeptiert

Beantwortet
table with NaNs into separate cells
% making a table with some all-NaN rows: Var = randi(100,12,4); Var([3 9],:) = NaN; M = array2table(Var) % split the table o...

ein Tag vor | 2

| akzeptiert

Beantwortet
Reshaping a matrix based on the first row
Here's one way: A = [270 270 270 271 272 272 273 273 273]; B = [ 12 2 3 14 5 2 6 8 11]; [~,~,cidx] = unique(A...

ein Tag vor | 0

Beantwortet
How do I change and save Check Box name in app designer so that it loads when I restart the app next time?
The main thing is that state has one field, which is "CheckBox", so it doesn't make sense to refer to state.InputEditField in lo...

ein Tag vor | 1

| akzeptiert

Beantwortet
How do variables work in Matlab App Designer?
"Does this mean that if I define variables in the function, I can't call upon those same variables in other parts of the code?" ...

ein Tag vor | 0

Beantwortet
Filled error bars to a plot
growth = readtable("growthWT2.xlsx"); time = growth.Time_h_; % no [ ] required timeOD = growth.Time_h__1; DO_1 = growth.O...

ein Tag vor | 0

| akzeptiert

Beantwortet
how to join two cell array
F = @(varargin)vertcat(varargin{:}); frameTOS = cellfun(F,frameTOS1,frameTOS2,'UniformOutput',false);

ein Tag vor | 1

Beantwortet
Plot a Cilinder or Sphere 3D
Still not sure what the matrix represents, but here is something: M = readmatrix('New Sphere 3D.txt'); angles = M(1,1:end-1); ...

ein Tag vor | 0

| akzeptiert

Beantwortet
Graph 3D Spheres
M = readmatrix('New Sphere 3D.txt'); angles = M(1,1:end-1); z = M(2:end,1); M(1,:) = []; M(:,1) = []; whos M z angles di...

ein Tag vor | 0

Beantwortet
Can you do the writeline function without the added terminator?
This documentation page: https://www.mathworks.com/help/instrument/serialport.configureterminator.html states that the "Allowe...

2 Tage vor | 0

| akzeptiert

Beantwortet
Vector Length Error when Calling Function
You have a variable called "length": length = data(2:end,2) Later, on this line: x_values1 = 1:length(PPI) the existence of ...

2 Tage vor | 0

Beantwortet
Find exact vector order in another vector array
If I understand correctly, you want to find where in a large vector (event_codes, size 1x19277) a small vector (e.g., att_event_...

2 Tage vor | 0

| akzeptiert

Beantwortet
3D scatter plot: can I make transparent points
"(or smaller)" You can specify the marker sizes: https://www.mathworks.com/help/matlab/ref/scatter3.html#mw_b556f712-aa82-4a50...

3 Tage vor | 0

Beantwortet
I am having problems with GUI
Change the main BasicScreen function back to how it was (in particular, it appears you inadvertently removed the text "(varargin...

3 Tage vor | 0

Beantwortet
Create contour plot from scatter plot
M = readmatrix('k.txt'); x = M(:,1); y = M(:,2); z = M(:,3); I = scatteredInterpolant(x,y,z); N = 80; X = linspace(min(x...

3 Tage vor | 0

Beantwortet
Help with updating for loop
You can iterate backwards, so that subsequent indexing is never off the end of M. Example: M=[1 2 3 4 5 6 7 8 9 10]; for i=le...

3 Tage vor | 0

| akzeptiert

Beantwortet
Plotting graph from.txt files and splitting their names
dir_files = '.'; F = dir(fullfile(dir_files,'*.txt')); colormatrix = [0.61,0.61,0.68; 0,1,1; 0,0,1]; mmatrix = ['o'; '*'; '+'...

3 Tage vor | 0

Beantwortet
split up a matrix at discontinuities
A = [0 34.4; 60 33.3; 120 32.2; 180 31.1; 240 30; 300 28.9; 360 27.9; 420 26.8; 480 25.7; 540 24.7; 600 23.6; 660 22.6; 720 21.6...

3 Tage vor | 1

| akzeptiert

Beantwortet
Function with for loop doesn't always work
fclose the file, and you'll see it's not empty.

4 Tage vor | 0

Beantwortet
Choose a random button from a set of 9 arranged in a 3x3?
Use this syntax: button_name = sprintf('Button_%d',n); app.(button_name).Text = num2str(Answer); Reference: https://www.mathw...

5 Tage vor | 0

Beantwortet
How to "shake loose" an auto scaling graph when it doesn't autoscale?
Where ax is your uiaxes component: xlim(ax,'auto') ylim(ax,'auto') or, equivalently: ax.XLimMode = 'auto'; ax...

5 Tage vor | 0

| akzeptiert

Beantwortet
Output problem for If - statement in For - Loop
The difficulty, as you've found, is that to determine that the user's input does not match any of the answers, you have to check...

6 Tage vor | 0

| akzeptiert

Mehr laden