답변 있음
add a number of nodes N between two known nodes
NODES = [-41.9153 -20.1597 65.3012; -33.2487 -10.7068 7.4146]; N = 5; t = linspace(0,1,N+2); t([1 end]) = []; NO...

1년 초과 전 | 0

| 수락됨

답변 있음
Bar chart from Excel with hidden columns
filename = 'Auswertung - Kopie.xlsx'; opts = detectImportOptions(filename); opts = setvartype(opts,2:numel(opts.VariableType...

1년 초과 전 | 1

| 수락됨

답변 있음
Conversion to double from cell is not possible
Set a breakpoint at that line in your function, and when the breakpoint is triggered, check the class of D. I suspect you'll fin...

1년 초과 전 | 0

| 수락됨

답변 있음
Patch and fill functions are not shading area between confidence intervals in 2024a
This will work regardless of the orientation of the vectors, i.e., whether each is a row or column vector: patch([Tlower(:); fl...

1년 초과 전 | 0

| 수락됨

답변 있음
Creation of binary coded image from a matrix
Here's one way, which will work for any non-empty matrix A. A = [0 2; 1 3] B = getB(A); disp(B) A larger example: A = randi...

1년 초과 전 | 2

| 수락됨

답변 있음
how can i make a parent - children hierarchy
Here's some logic that should do it. Adjust as necessary for your actual file. % an example table that might be similar to what...

1년 초과 전 | 0

답변 있음
App designer: Why can't I bring forward my axes in the design?
Any axes will always be beneath any non-axes component (including a uiimage) or panel. See "Reordering Limitations" here: http...

1년 초과 전 | 1

| 수락됨

답변 있음
Vector field graph from a data file.
readmatrix might be useful to read the file, and quiver might be useful to create the plot.

1년 초과 전 | 0

| 수락됨

답변 있음
Why did I get duplicate variables in my workspace after changing their names?
To me it seems most likely that at some point you saved the mat files with the Flux (capital F) variables still in your workspac...

1년 초과 전 | 0

| 수락됨

답변 있음
Index exceeds the number of array elements. Index must not exceed 101.
The terms x1(i-d_2+1) and x2(i-d_2+1) will cause that error because d_2 is 1.

1년 초과 전 | 0

답변 있음
error in the code
The first time this line is encountered: string(j,n)=string(k,n); k is 9, but string only has 3 rows. That's the reason for th...

1년 초과 전 | 0

답변 있음
Why do I receive "Too many arguments" error when trying to export data from an app designer table as a .txt file, to a user defined file location?
writetable doesn't return any arguments, so that's what the error message is saying. writetable writes a table to file. save sa...

1년 초과 전 | 1

| 수락됨

답변 있음
A simple allocation of array places to zero does not work in MATLAB R2020B
One solution is to construct a matrix of indices: KSE(locations(ii)+(-50:50).') = 0;

1년 초과 전 | 1

| 수락됨

답변 있음
append (not strcat) to combine strings with whitespace (\n)
From here: https://www.mathworks.com/help/matlab/ref/matlab.ui.control.editfield-properties.html#buh_e24-58-Value "If you want...

1년 초과 전 | 1

답변 있음
cpsd output vector differs from plotted result
Looks like cpsd with no outputs plots the magnitude, abs(Pxy), rather than the real part, real(Pxy). signalx = randn(2e4,1); s...

1년 초과 전 | 0

| 수락됨

답변 있음
How to pull out data from cell array, concatenate it, and put into table for varying trials
T = table(); N = numel(Predictors); for ii = 1:N idx = [1:ii-1 ii+1:N]; T.(sprintf('Train_%d',ii)) = vertcat(Predict...

1년 초과 전 | 0

답변 있음
How to calculate mean of specified row and column of multiple dataset of structure?
result = mean(cat(3,data.best),3);

1년 초과 전 | 1

| 수락됨

답변 있음
Vertically Concatenate Data in a Cell array
M = vertcat(Predictors{:});

1년 초과 전 | 0

| 수락됨

답변 있음
Code not displaying figure
The last end is in the wrong place. Placing it where you have it makes the projection generation and figure creation code part o...

1년 초과 전 | 0

| 수락됨

답변 있음
How to convert tables into numeric arrays?
C_512 is not a cell array of tables; it is a cell array of cell arrays of tables. % Load the .mat file load('./C_512.mat'); C...

1년 초과 전 | 0

| 수락됨

답변 있음
Is there a quick function to make an array whose elements are the sum of the row and column numbers?
function out = Fun(n) out = (1:n) + (1:n).'; end

1년 초과 전 | 0

| 수락됨

답변 있음
Regarding the GUI update to change the slider values.
Assuming app.dropdown is your dropdown component and app.slider is your slider component: if app.dropdown.ValueIndex == 1 ...

1년 초과 전 | 0

| 수락됨

답변 있음
how can add an text on GUI
f = uifigure(); t = uitextarea(f); str = 'some text'; t.Value = str; https://www.mathworks.com/help/matlab/ref/matlab.ui.c...

1년 초과 전 | 0

답변 있음
indexing groups of elements in a vector in a certain way
%matrix A A = [1 1 4 1 5 1 6 1 5 2 6 2 7 2 3 3 4 3 5 3 3 3]; %matrix B B...

1년 초과 전 | 0

| 수락됨

답변 있음
How can I add a marker to the legend with two x axes?
Interestingly, swapping the order of perr and terr in the legend() call makes both markers show up in the legend. pwa= [NaN;4.2...

1년 초과 전 | 0

| 수락됨

답변 있음
How to remove the number caused by 'grid on' and How to change the legend mark
w0=300; l1=2*w0; l2=w0^2; k=60; s=tf('s'); r=[0.9,1.2,1.3,1.4,1.8,2.5,3.5]; H=figure; for i=1:numel(r) transfer_func...

1년 초과 전 | 1

답변 있음
Two Plotting results one at a time like simulation
Let's say you have these x, y, and Slope variables: x = linspace(0,1,100); y = exp(x/2); Slope = 0.5*y; Then to plot y and S...

1년 초과 전 | 0

| 수락됨

답변 있음
Running a large array
You can read and process the file in sections, one section at a time, in a loop, by specifying the start and count input argumen...

1년 초과 전 | 0

답변 있음
I want to plot same X axis and different Y axis like timing diagram
I don't know what form your variables are in, but here's something: t = 0:0.5:4.5; Vc = [0 1 0 1 0 1 0 1 0]; Vb = [0 0 1 1 0 ...

1년 초과 전 | 1

답변 있음
Right now, changing the spinner's value will create a new maze, but the mazes are still 10-by-10. Try running the app to verify this behavior. To fix this, you can use the gr
% Callback function: GridSizeSpinner, NewMazeButton function NewMazeButtonPushed(app, event) % get the spinner's value: ...

1년 초과 전 | 0

더 보기