답변 있음
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 ...

2년 초과 전 | 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...

2년 초과 전 | 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] ...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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 =...

2년 초과 전 | 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....

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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) ...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 0

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

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 0

답변 있음
What is the 'Yes No' error code???
ki_YesNo='No' % ... switch ki_YesNo case 'NO' % ... case 'Yes' % ... otherwise err...

2년 초과 전 | 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...

2년 초과 전 | 0

| 수락됨

답변 있음
Run array into Looped Function File
for i = 1 + h should be for i = 1:numel(h)

2년 초과 전 | 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...

2년 초과 전 | 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)...

2년 초과 전 | 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...

2년 초과 전 | 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...

2년 초과 전 | 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)...

2년 초과 전 | 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...

2년 초과 전 | 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,:);

2년 초과 전 | 0

| 수락됨

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

2년 초과 전 | 0

| 수락됨

더 보기