Beantwortet
classify "rows" of numbers contained in different arrays
'some unique rows are actually duplicate, i.e. row "1 2" is equivalent to "2 1", or row "1 3" is equivalent to "3 1"' If it is ...

fast 3 Jahre vor | 1

Beantwortet
live data plotting in app designer.
What you have now is plot(app.UIAxes,app.t,app.y,'bs'); which plots blue squares at the points given by (app.t,app.y). If you...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Find the first appearance of a number in a row.
A = [0 0 0 2095 2030 0 2030 2030 2030 2030 0 0 2095 2055 2065 2065 2055 2050 2030 2030] ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
problem to apply variableNames to table
You have to set the ColumnName of the uitable separately, if you want to do that: app.Preset_UITable.ColumnName = bubu.Properti...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I find out a struct is empty?
It looks like you want to find out whether a struct has any fields or not, for which you can use isempty(fieldnames(A)) A = str...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
processing a file but keeping blank lines intact
Here's one way: input_file = 'file.txt'; output_file = 'file_modified.txt'; constant_offset = 100; input_format = "%f,%f...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Assign different values per column using logical indexing
matrix = magic(5); % data matrix boundary_conditions = [10, 100]; % boundary conditions disp(matrix); % using logical index...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Read text without converting to date
Try using readcell or readtable. file = 'test.csv'; % show file contents: type(file) % read file into a cell array C: C =...

fast 3 Jahre vor | 0

Beantwortet
Figure not showing anything
Runs for me (see below). Do you get any error messages on the command line when you try to run it? unzip wine.zip load wine....

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Help with undefined function error in context menu in App Designer?
Use "@app.Line1" and "@app.Line2" instead of "@Line1" and "@Line2", since those functions are app methods. See below: classdef...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Scaling Y-Axis by natural log scale.
log10 scale is the same as natural log scale is the same as log2 scale is the same as log-any-base scale. Logarithmic scale mea...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Find least frequent value in an array
H = [1 1 2 2 3 3 4 5 5 5]; [uu,ii] = unique(sort(H(:))); [~,idx] = min(diff([ii; numel(H)+1])); result = uu(idx) % another...

fast 3 Jahre vor | 0

Beantwortet
Apply "Figure Copy Template" within m file code
Here's some code that programmatically applies the default Presentation settings (Change font size to 140% of original, Bold, Se...

fast 3 Jahre vor | 1

Beantwortet
Select only those nodes of an rx3 matrix placed at a distance 'd' from a node P (1x3)
load M figure plot3(M(:,1),M(:,2),M(:,3),'r.') view(2) % keep only points whose x-coordinate is less than 28: idx = M(:,1) ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Loop with Time series
You can use the month and year functions, along with findgroups, to group the timetable by year and month. Then splitapply to pe...

fast 3 Jahre vor | 0

Beantwortet
What's wrong in this function
"i do not type the variable 'SS' " You run this command: StepDown_ELS_F(ns, face, val_date, mid_date, strike, c_rate, dummy, k...

fast 3 Jahre vor | 0

Beantwortet
Sort random number at a matrix
% a matrix M = reshape(1:100,[],2) % randomly reorder the rows M = M(randperm(size(M,1)),:)

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Scatter plots for a large dataset with 2 grouping variables
The function doit is written to return what gscatter returns, but gscatter returns an array of line handles - one line handle pe...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I draw a surface plot with 2 y-z plots containing (y1, z) and (y2, z) on the axes walls?
Something like this? N = 100; P = 1200*rand(1,N); T = 800*rand(1,N); t = 1:N; surf(1:N,1:N,200*rand(N,N)) hold on box...

fast 3 Jahre vor | 0

Beantwortet
What is the 'Yes No' error code???
ki_YesNo='No' % ... switch ki_YesNo case 'NO' % ... case 'Yes' % ... otherwise err...

fast 3 Jahre vor | 0

Beantwortet
How to extract indices of matching strings in the following problem?
big_list = {'word1','word2','word3','word4','word5','word6'}; small_list = {'word5','word2','word4'}; [~,idx] = ismember(sm...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Run array into Looped Function File
for i = 1 + h should be for i = 1:numel(h)

fast 3 Jahre vor | 1

Beantwortet
Read data from a complex file
Something like the following may work. You may need to change the header_str and text_scan_format to match your actual file's co...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to get this equation to plot
Use .* for element-wise multiplication, and if you want to use fplot then x1 and x2 should be function handles (I've added "@(t)...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to remove values from HEATMAP
I don't know of a way to alter the labels on a heatmap. What I would do in this situation is build a custom heatmap-looking plot...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
problem with Boolinger Band
Note the documentation of bollinger input argument Data: Data for market prices, specified as a matrix, table, or timetable. Fo...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Help me to fill the gap of the data points using linear interpolation.
clear,clc,close all fname = 'RLC_Step_Underdamped_b.csv'; Data = importdata(fname,',',15); Fs = 25000; time = Data.data(:,1)...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
double the number of coordinates of a vector while maintaining the trend of the line created with that coordinates
load L figure('Position',[200 10 400 1000]) plot3(L(:,1),L(:,2),L(:,3),'ko','Markersize',6); axis equal Nt = size(L,1); t...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
The logical indices in position 1 contain a true value outside of the array bounds.
id = Lat>=0 & Lat<=14 & Lon>=95 & Lon<=126; Data1 = Data(id,:);

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
cell array and uitable
Perhaps one of these methods. s = { 'R01C01' 2 2 100 100 'R02C01' 3 3 67 67 'R03C01' ...

fast 3 Jahre vor | 0

| akzeptiert

Mehr laden