답변 있음
how catch value in node tree
You have to see whether the node is included in the tree's CheckedNodes. ismember(app.NozionaleNode_2, app.Tree_2.CheckedNodes)...

대략 2년 전 | 1

| 수락됨

답변 있음
Open and reformat data from txt file
(EDIT to clarify: This is answering the original question asked, about reformatting a text file, not the subsequent question abo...

대략 2년 전 | 0

| 수락됨

답변 있음
Contradiction of variable existence
Use: ~exist("strF","var")

대략 2년 전 | 1

| 수락됨

답변 있음
Kindly guide me how to add the panel for input values of app designer
In Design View, Select Panel in the Component Library on the left-hand side. Click somewhere in your uifigure to place the pan...

대략 2년 전 | 0

답변 있음
Creating a scatter plot with patch
"I wondered if there might be something similar between patch and scatter" I would expect so. See this: https://www.mathworks....

대략 2년 전 | 1

| 수락됨

답변 있음
Issue with saving the image
You might try making the figure larger before saving, e.g.: f.WindowState = 'Maximized'; saveas(f,'Figure_001','bmp') and/or ...

대략 2년 전 | 0

| 수락됨

답변 있음
Count percentage of certain number in struct
% something similar to your 1x120 struct: S = struct( ... 'condition',num2cell(logical(randi([0,1],1,120))), ... 'acc...

대략 2년 전 | 2

| 수락됨

답변 있음
Algorythm for Average of excel data
Maybe something like this: filename = 'S1IA.csv'; T = readtable(filename); T.Time = seconds(T.Time); T = table2timetable(T,'...

대략 2년 전 | 0

답변 있음
Help with index for maximum value
The easiest way to fix this is to use the second output from max, which tells you the column index in frac of each element of ma...

대략 2년 전 | 0

| 수락됨

답변 있음
Editing csv data and convert it into a table
filename = 'EnergyLIS.csv'; out = importdata(filename); out(2:end) = strrep(out(2:end),',"','/'); out(2:end) = strrep(out(2:e...

대략 2년 전 | 2

| 수락됨

답변 있음
How can I mirror a plot from a specific x axis.
x=[ 0.00630656 0.00615694 0.00602694 0.00593928 0.0058094 0.00566972 0.00552689 0.00523467 0.00493265 0.0045527 0.004...

대략 2년 전 | 0

| 수락됨

답변 있음
Is there any method to specifically point few operating points in 3D surf ?
Maybe this is helpful: % make a surface using surf() N = 10; X = 1:N; Y = 1:N; Z = peaks(N); surf(X,Y,Z) % pick some po...

대략 2년 전 | 0

답변 있음
Finding the maximal value in a matrix, within a specific column, and show the value in the output.
D(:,4) is a table (consisting of one column - the 4th column of D), not a numeric array; that's what the error is trying to tell...

대략 2년 전 | 0

| 수락됨

답변 있음
Unable to resolve the name Error
This mat file contains one variable (called "exp1_014_mat_saving1"): S = load('triangle2.mat') which is a struct with fields I...

대략 2년 전 | 0

| 수락됨

답변 있음
Error too many input arguments using equals equals
"I tried having it be a table and got different errors" Let me keep both want and roster as tables. want = table({'ADNI1';'ADN...

대략 2년 전 | 0

답변 있음
How to display the value of a variable in real time in a uitable through appdesign
"I know it can be added to myScript through uitable and set, but I just want to do it through appdesign[er]" It works the same ...

대략 2년 전 | 0

답변 있음
How can i plot this equation using surface plot in Matlab?
W=0.34e-3; Lambda=0.15e-6; t=400e-9; j0=1; x = linspace(-W/2,W/2,100); jxy = NaN(1,numel(x)); idx = abs(x) < W/2-Lambd...

대략 2년 전 | 0

| 수락됨

답변 있음
Extracting a variable from a series of files contained inside a folder
% the folder which contains 10 .mat files file_path = '.'; % the name of the variable to load from each .mat file variable_...

대략 2년 전 | 0

| 수락됨

답변 있음
How do I make this type of graphics, is it with scatter? For your answers, thank you!
Looks like a surface to me, with NaNs in the data where the plot is white, showing the axes beneath the surface. Adapting the c...

대략 2년 전 | 1

답변 있음
How does the zoom out feature work?
Two things to be aware of: You can't click-and-drag with zoom out, i.e., you can't select a region that's larger than the curre...

대략 2년 전 | 1

답변 있음
How can I change a prompt based on the input from another prompt?
Use sprintf to construct the prompts, and store the user-inputs in a variable of an appropriate class (I'm using a cell array he...

대략 2년 전 | 0

답변 있음
Nonlinear colormap for data that diverges
How about something like this: %Simple Model of divergent data X = linspace(-2,2,801) + 0.002; Y = linspace(-2,2,501) + 0.002...

대략 2년 전 | 1

| 수락됨

답변 있음
How to make latch switch
Try the attached m-file. See if it works as expected and makes sense.

대략 2년 전 | 0

| 수락됨

답변 있음
How to fill in a zeroes matrix using data from a separate array.
Here's one way to do that, demonstrated with smaller matrices: % a 3x2 matrix of precedence requirements, in lieu of your 121x2...

대략 2년 전 | 2

답변 있음
Converting a cell array to excel file using write table - how to add headers and sheet name?
filename = 'THRESH_DATA.xlsx'; sheetNames = string(2000:2022); % replace this with the variable names you want: varNames = ...

대략 2년 전 | 0

| 수락됨

답변 있음
cell2mat not working
If the contents of the cells cannot be concatenated into a matrix, then you'll get an error telling you so. For example: C = {...

대략 2년 전 | 0

답변 있음
how would i make the calculator shown use functions
Do you want to call functions instead of hard-coding num1+num2, num-num2, etc.? S = struct( ... 'function',{@plus,@minus,@...

대략 2년 전 | 0

답변 있음
How to put linspace data into if statement
Use logical indexing: phase = NaN(size(theta)); idx = (0 <= theta) && (theta <= pi); % compression phase(idx) = 1; idx =...

대략 2년 전 | 0

답변 있음
Weird UITextArea behaviour working with Strings
"It seems the action of clicking has split the long string into individual entries now." Yes, apparently clicking in a uitextar...

대략 2년 전 | 1

| 수락됨

답변 있음
Reading ping output using readtable
Here's one way to get the timestamps and times directly out of the file (without using readtable): format longg filename = 'te...

대략 2년 전 | 1

| 수락됨

더 보기