답변 있음
I want to make a GUI program in Matlab regarding the FCM method. what is the programming language?
The programming language for making a GUI in MATLAB is the MATLAB programming language. Here are some links that may help you g...

2년 초과 전 | 0

답변 있음
Plotting on the axes with freqs() not working
The outputs of freqs are described in the documentation here. Note that the first output is the frequency response (a vector) an...

2년 초과 전 | 0

| 수락됨

답변 있음
Not getting the output even the variable is involve in the function
In calculate_kf, you have: Kf_L = (L_Active /L_Active +1); which produces Kf_L = 2 for any finite non-NaN non-zero L_Active. ...

2년 초과 전 | 0

답변 있음
Not showing lines and curves in the plot.
(Using the xlsx file you shared in this question's thread.) Use curly braces to access data from a table variable, as in: D_ca...

2년 초과 전 | 0

답변 있음
Why am I getting a 'parse error' at t and how do I fix it?
Function definitions in a script must be at the end of the script, like this: % Example usage and plot t = linspace(-5, 5, 100...

2년 초과 전 | 1

| 수락됨

답변 있음
Accumulating data in a loop while
t = rand(1,9) % 9 random t values c = cumsum([0 t]) % c = [0, t(1), t(1)+t(2), t(1)+t(2)+t(3), etc.]

2년 초과 전 | 0

| 수락됨

답변 있음
why do i get Unrecognized function or variable error
There was an "end" in the wrong place. See comments below. function main() % Kullanıcıdan A matrisini ve b vektörünü al ...

2년 초과 전 | 0

답변 있음
Save image in specific location (directory)
Specify the full path to write to: imwrite(frame,fullfile(folderName,"frame.jpg")) Of couse, if that line is located in a diff...

2년 초과 전 | 0

| 수락됨

답변 있음
Do not see File Browser under list of Live Script Control options
I don't see File Browser Control listed in the documentation for R2022a, so I'm going to assume it was introduced after R2022a, ...

2년 초과 전 | 0

| 수락됨

답변 있음
Cannot convert EditField(text) into arrays or matrix
Here (attached and reproduced below) is a simple GUI where you can enter scalars, vectors, or matrices, and their sum will be sh...

2년 초과 전 | 0

답변 있음
creating subplots for different array values
layerSel = [1 13 25]; % Selected layers ssSel = [102 104 112 121]; % Selected participants nBlocks = 10; nTrialsPerBlock = ...

2년 초과 전 | 0

| 수락됨

답변 있음
save images inside a for loop at uneven intervals
Here's one way that may work for your particular task: Img = zeros(0,0,0); for i = 1:a B = some process % my imag...

2년 초과 전 | 0

| 수락됨

답변 있음
Divide matrix in subgroups based on rows and columns
A = rand(51200,48); n_rows_per_cell = 256; n_cols_per_cell = 1; [n_rows,n_cols] = size(A); Acell = mat2cell(A, ... ...

2년 초과 전 | 0

답변 있음
How can I make a 40 x 40 grid size in matlab ? Is there any inbuilt function to make a grid of any random size as needed ?
Something like this? T=6 ; t= 0:0.01:3*T; x=@(t) sin(2*pi*t.*1/T); scatter(x(t+10),x(t)); ticks = linspace(-1,1,41); ax ...

2년 초과 전 | 0

답변 있음
How to call a MATLAB variable loaded in from a .mat file when you don't know the name of the variable beforehand
variable_names = who('-file',filename); S = load(filename,variable_names{1}); new_data = S.(variable_names{1});

2년 초과 전 | 1

답변 있음
Index in position 1 exceeds array bounds.
You use values from the second column of PolEST as row indices in PolSC: r=PolEST(i,2); % ... scr=PolSC(r,:); The values in ...

2년 초과 전 | 0

| 수락됨

답변 있음
Plots not displaying any information
Pinf is empty Pinf=101.3:0.000032 so Alt, F, and Isp are also empty; therefore the plots are empty. What is the intended valu...

2년 초과 전 | 0

| 수락됨

답변 있음
Save struct field to a file with save command
Since the variable you want to save is a table, you can use writetable. <https://www.mathworks.com/help/matlab/ref/writetable...

2년 초과 전 | 2

답변 있음
Replacing numbers in the matrix
"I just need to replace redundant Ids numbers with 0 in column1 or with 3 in column2 to reach desireble stimulus length" filen...

2년 초과 전 | 0

| 수락됨

답변 있음
Getting fprintf to display two different outputs from a function on the same line.
% initialize a, b, and c a = 3; b = -6; c = 4; % call PolyVertex and assign both outputs [xV,yV] = PolyVertex(a, b, c); % ...

2년 초과 전 | 0

답변 있음
image processing error: Unable to perform assignment because the size of the left side is 133-by-133-by-3 and the size of the right side is 133-by-133.
The cause of the error is that you disregard the size in the 3rd dimension of the image array: % Get image size [m, n, ~] = si...

2년 초과 전 | 0

| 수락됨

답변 있음
How to open .cdf file
sz = [128 128 128]; unzip('New folder (3).zip') ls addpath('New folder (3)') % to run imshow3D.m The size of the cdf file ...

2년 초과 전 | 0

| 수락됨

답변 있음
Is there a way to iterate through numbered UI components in app designer?
for i = 1:numel(filename) app.(sprintf('Checkbox_%d',i)).Value = 1; end

2년 초과 전 | 1

| 수락됨

답변 있음
Help solve an error in displaying data
Observation 1: You have currentFile = files(l).name; so currentFile is the name of the file only, without any absolute or rela...

2년 초과 전 | 1

| 수락됨

답변 있음
Why do I get unequal wavelet coefficients when using different syntaxes in continuous wavelet transform?
From the documentation for cwt: "cwt(___) with no output arguments plots the CWT scalogram. The scalogram is the absolute value...

2년 초과 전 | 1

| 수락됨

답변 있음
How could this code be vectorized?
n1 = 400; n2 = 9; n3 = 2; A1 = rand(n1, n2, n3); A2 = rand(n1, n2, n3); A3 = rand(n1, n2, n3); [~, B] = max(A3, [], 3); ...

2년 초과 전 | 1

답변 있음
how to take random words from a sting matrix
Words = ["a","1","x","9","string","matrix","full","of","words"] idx = randperm(numel(Words)) inOtherWords = Words(idx(1:5))

2년 초과 전 | 0

답변 있음
How Can I plot a cell array against a double
Your monthly temperature data has two cells containing vectors of only 11 elements. There is no way to tell, with just the infor...

2년 초과 전 | 0

| 수락됨

답변 있음
Grab 20 lines and make a graph
Maybe you want to transpose center_row_data when plotting it. img = peaks(1000); % some img center_row_data = img(415:435, 1...

2년 초과 전 | 0

| 수락됨

답변 있음
Index exceeds the number of array elements. Index must not exceed 10.
@clay Hester: The problem is that your variable simpsonvector is hard-coded to have 11 elements (regardless of the value of Stat...

2년 초과 전 | 0

| 수락됨

더 보기