Community Profile

photo

Voss


Last seen: Today 2013년부터 활동

통계

All
  • MATLAB Central Treasure Hunt Finisher
  • Treasure Hunt Participant
  • 24 Month Streak
  • Thankful Level 5
  • Commenter
  • Leader
  • Most Accepted 2022
  • Ace
  • Revival Level 4
  • Knowledgeable Level 5
  • Promoter
  • Scholar

배지 보기

Content Feed

보기 기준

답변 있음
Plotting 'HH:MM' format times against the X axis
times = (0:24*6-1)*10 speeds = rand(size(times)); lw = 2; legv = 11; dateTimes = datetime(2011,12,24,0,times,0, 'Format','...

대략 14시간 전 | 0

답변 있음
Using accumarray to organize large CSV
"my goal is to have separate variables or columns in a table that show d18O and DATE for each SITE NUMBER and DEPTH" Something ...

1일 전 | 0

답변 있음
Trouble concatenating a cell.
Here's one way to make a table out of it: % a cell array like yours: tst = { ... "n"+string(randi(10,4,1)),zeros(4,1),ran...

1일 전 | 0

| 수락됨

답변 있음
The function textscan is problematic and has serious bug!
The problem is due to errors in the sliceBad.txt file, like these on line 391: 0.2848764-119 0.1045924-120 0.1045924-120 0...

1일 전 | 1

| 수락됨

답변 있음
Merging multiple graphs in the same tiled layout
I gather you have figures already saved, whose tiles you want to combine in the way you describe. %Meaningless values for graph...

1일 전 | 0

| 수락됨

답변 있음
create an increasing series
r = 0.2; n = 25; m = 5; V = m*r.^(2*(0:n-1)); S = cumsum(V); format long g disp(S.')

2일 전 | 2

| 수락됨

답변 있음
.csv using readtable doesn't make difference between the value 1 and 01
fn = '23_Time Cards_Practice 1.CSV'; opts = detectImportOptions(fn); % tell readtable to read NUMBER column as char, not n...

2일 전 | 1

답변 있음
Error using slice: Too many input arguments
Runs OK for me in R2022a. Maybe you have another function called "slice". Check this on the command line: which -all slice

2일 전 | 0

| 수락됨

답변 있음
Why does my it keep saying error on the input line?
You should use the 's' option in input() to avoid interpreting the input, e.g., input A will be stored as the letter A rather th...

2일 전 | 0

답변 있음
Plotting implicit functions via fimplicit
Apparently (this behavior appears to be undocumented), you can pass a cell array of function handles to fimplicit, as in: L = 5...

3일 전 | 0

| 수락됨

답변 있음
How to use arrayfun to create an array whose value are relating to index?
function val = pixel_replication(img, x, y) val = img(nearest(x), nearest(y)); end function u = nearest(v) l = flo...

3일 전 | 1

| 수락됨

답변 있음
writecell writes empty value for the first row in a for-loop
@Shae Morgan: I think @dpb is exactly right with his comments - the root cause of the problem is that the edit box Value is not ...

3일 전 | 1

| 수락됨

답변 있음
pie chart not complete - a pie is missing
The pie chart is incomplete because the numbers in your variable "percentages" do not sum to 1. They sum to 0.91, so you get a 9...

3일 전 | 0

| 수락됨

답변 있음
how catch number in "()"
f={"1A(12)","cB(34)","4C(23)"}; C = regexp(cellstr(f),'\((.*)\)','tokens','once'); C = [C{:}] N = str2double(C)

4일 전 | 1

| 수락됨

답변 있음
fixed point iteration and plotting iteration
Assuming the sequence is defined as in your other question, here's something: T = @(xy)xy([2 1]).*[-1 1]; n_iterations = 20; ...

4일 전 | 0

| 수락됨

답변 있음
Plotting and calculation of iteration of fixed point
Here's something: T = @(xyz)-0.5*xyz; lambda = 0.5; n_iterations = 20; xyz = zeros(n_iterations+1,3); xyz(1,:) = [3 2 1];...

4일 전 | 1

| 수락됨

답변 있음
Increase size of array within cellfun
cellfun performs a loop internally, so I think an explicit for loop in this case is fine. However, if you want to use cellfun, ...

4일 전 | 0

| 수락됨

답변 있음
Calculation of a column
To = 288.15; % Temperature in ISA [K] % pre-allocate Ta to be the same size as Altitude (53x1), with all elements 216.65 Ta ...

4일 전 | 0

| 수락됨

답변 있음
insert two vertical axes (left and right) into the same bar graph
load CountArray_1.mat CountArray = CountArray_1; x = CountArray(:,1).'; y = CountArray(:,2); % x = CountArray(:,3).'; %...

4일 전 | 0

| 수락됨

답변 있음
extracting specific values from a mat file
First load the two mat files you have. Then index into the 13299x1 variable using the 1723x1 row index variable, creating a new ...

8일 전 | 0

답변 있음
Variable layer thickness using loops
% Make VSP G-mat for arbitrary sensor depths and non-uniform layer thicknesses clear; close all; clc set(0,'DefaultAxesLin...

8일 전 | 0

| 수락됨

답변 있음
Detect figure or uifigure from the handle?
Where f is your figure or uifigure handle: matlab.ui.internal.isUIFigure(f)

8일 전 | 2

답변 있음
I am trying to use nested for loops to analyze average RT and Acc for each condition for each participant.
T = readtable('data.txt') T_summary = groupsummary(T,{'ParticipantID','ConditionID'},'mean') T_summary is a table containing t...

8일 전 | 0

답변 있음
I have to do a program to change the plot w.r.t Slider value . But how slider value will go again in formulas so we will get updated plot.
Here's one way. The idea is to separate the GUI code from the calculation code, with the calculation code going into the slider ...

8일 전 | 1

| 수락됨

답변 있음
I keep getting an error "Error using plot Data must be a single input of y-values or one or more pairs of x- and y-values." for the code below calling to a function:
plot([A1(i,1) B1(i,1)],[A2(i,1) B2(i,1)],'r',[B1(i,1) C1(i,1)],[B2(i,1) C2(i,1)],'b',[C1(i,1) D1(i,1)],[C2(i,1) D2(i,1)],'...

8일 전 | 1

답변 있음
Figure inside a figure in uifigure environment
You'll create two axes inside one figure, not two separate figures. Something along these lines, to get started: f = uifigure;...

13일 전 | 0

답변 있음
how break loop in execution?
Set the uiprogressdlg 'Cancelable' property to 'on' when it is created. Then in the loop, check the 'CancelRequested' property, ...

13일 전 | 1

| 수락됨

답변 있음
how refresh chart in the function?
Use cla() to clear the axes: function bubu(app) cla(app.simulaz_UIAxes_Eq,'reset') for i = 1:...

13일 전 | 0

| 수락됨

답변 있음
delete all the decimal digits that are 0 after the first decimal place
Using %g instead of %.1f does what you want, for this example at least. Also, you can use compose instead of the for loop: ...

13일 전 | 0

| 수락됨

답변 있음
Identify maxima within parts of vectors
The problem is that vettore_massimi_somma_progressiva is only initialized when h_sum(r)>2 and r==1. So if the first time h_sum(r...

14일 전 | 0

| 수락됨

더 보기