Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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. ...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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.]

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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, ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
creating subplots for different array values
layerSel = [1 13 25]; % Selected layers ssSel = [102 104 112 121]; % Selected participants nBlocks = 10; nTrialsPerBlock = ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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, ... ...

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 0

Réponse apportée
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});

plus de 2 ans il y a | 1

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 2

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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); % ...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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); ...

plus de 2 ans il y a | 1

Réponse apportée
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))

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Charger plus