回答済み
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 ...

3年弱 前 | 1

回答済み
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...

3年弱 前 | 1

| 採用済み

回答済み
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] ...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

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

3年弱 前 | 1

| 採用済み

回答済み
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 =...

3年弱 前 | 0

回答済み
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....

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 1

回答済み
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) ...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

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

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

回答済み
What is the 'Yes No' error code???
ki_YesNo='No' % ... switch ki_YesNo case 'NO' % ... case 'Yes' % ... otherwise err...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
Run array into Looped Function File
for i = 1 + h should be for i = 1:numel(h)

3年弱 前 | 1

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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)...

3年弱 前 | 1

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

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

3年弱 前 | 0

| 採用済み

回答済み
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)...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 1

| 採用済み

回答済み
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,:);

3年弱 前 | 0

| 採用済み

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

3年弱 前 | 0

| 採用済み

さらに読み込む