Réponse apportée
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 ...

presque 3 ans il y a | 1

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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] ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

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

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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 =...

presque 3 ans il y a | 0

Réponse apportée
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....

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 1

Réponse apportée
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) ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

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

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
What is the 'Yes No' error code???
ki_YesNo='No' % ... switch ki_YesNo case 'NO' % ... case 'Yes' % ... otherwise err...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Run array into Looped Function File
for i = 1 + h should be for i = 1:numel(h)

presque 3 ans il y a | 1

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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)...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

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

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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)...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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,:);

presque 3 ans il y a | 0

| A accepté

Réponse apportée
cell array and uitable
Perhaps one of these methods. s = { 'R01C01' 2 2 100 100 'R02C01' 3 3 67 67 'R03C01' ...

presque 3 ans il y a | 0

| A accepté

Charger plus