Answered
Find values in 2D array corresponding to vector of indices obtained from another array
amp = [0.04 0.05 0.06 0.07 0.05 0.07 0.03 0.02 0.06 0.06 0.06 0.03 0.06 0.04 0.07]; frq = [50 16 18 50 50 ...

4 years ago | 0

| accepted

Answered
hi can anyone tell me what is wrong with my morse code encoder and decoder gui program
It looks like you've accidentally put the code you wanted to be in edit1_Callback into edit1_CreateFcn instead. Move the code f...

4 years ago | 0

Answered
How to output a numeric value to a editfield numeric?
Let's say app.edit_machNumber is your NumericEditField. To make the value of the variable machNumber show up in app.edit_machNum...

4 years ago | 0

Answered
why don“t I see my output when i run the function?
x = [0.5; 0.75; 1; 1.25; 1.5; 1.75; 2; 2.25; 2.75; 3; 3.25; 3.75; 4; 4.25; 4.5; 5]; find_factor(x) function v = find_facto...

4 years ago | 1

| accepted

Answered
import data column for later use on behalf
A is a matrix containing the data from the txt file. (It doesn't make sense to say A.data when A is a matrix.) file='Maximos or...

4 years ago | 0

| accepted

Answered
Why won't Matlab recognize my data?
The answer depends on how you're reading the file and how you want to deal with the cells in column 2 that say "<1". One way to...

4 years ago | 0

| accepted

Answered
From which version of MATLAB the "ischange" function was introduced
(From https://www.mathworks.com/help/matlab/ref/ischange.html) Version History Introduced in R2017b

4 years ago | 0

| accepted

Answered
what is wrong in my code..?I am not able to repeat result for all last names..what i should edit in my code
There seems to be some confusion about how functions work in MATLAB, so you may benefit from going through this: https://www.mat...

4 years ago | 0

Answered
convert xif files to jpg
You can try this: xif_file_name = 'image1.xif'; jpg_file_name = 'image1.jpg'; X = xifread(xif_file_name); imwrite(X,jpg_...

4 years ago | 0

Answered
How to plot a cell array containing characters?
% you have a 1x1000 cell array called 'comment': comment = repmat({0},1,1000); comment([1 2]) = {"artefact"}; disp(comment); ...

4 years ago | 0

Answered
How do I turn/convert (the data of) a cell array into a vector
I don't know what's in your cell arrays, but let's say each cell contains a scalar double. Then you can make the contents of the...

4 years ago | 1

Answered
How can I zoom in/out in a plot with two x axes?
If the XLimits of each axes were supposed to always be the same as each other as you zoom, then I would say you could use linkax...

4 years ago | 0

| accepted

Answered
variable or struct index creation
If ImportName is a cell array of character vectors, like this: ImportName = sprintfc("traces%02d",1:5) Then building that imag...

4 years ago | 1

| accepted

Answered
I keep getting not enough input arguments error when trying to make a sine function
It's possible that you inadvertently clicked the run button or hit the F5 key in the MATLAB editor window where sin_NU.m was ope...

4 years ago | 0

| accepted

Answered
How can you move a plot using a keyboard input?
I think you're right that plot is probably easier to work with than viscircles, and your circle function appears to work as-is. ...

4 years ago | 1

| accepted

Answered
Keep getting NaN error when i run code in gui
You get NaN because of this: function edit1_Callback(hObject, eventdata, handles) % convert the message from edit1 to a number...

4 years ago | 0

| accepted

Answered
DATA ARRANGEMENT AND COMBINATION
D = -.018+.0002*(0:10); E = 175+ 1*(0:10); F = 368+ 1*(0:10); [E,F,D] = meshgrid(E,F,D); D = D(:); E = E(:); F = F(:);...

4 years ago | 0

Answered
Set to zero values in matrix in between two lines
width=1000; height=200; A=rand(height,width); % create a random matrix/image subplot(3,1,1); imshow(A) % slopes (s) and y...

4 years ago | 1

Answered
Cell of Strings, using cell2mat gives Dimensions of arrays being concatenated are not consistent.
I'm not sure why you want to use cell2mat to convert a cell array of character vectors to an array of strings. You can use strin...

4 years ago | 1

| accepted

Answered
Delete previous xline on app.UIAxes
Store the line when it is created: app.xline_handle = xline(...); Later, delete the line: delete(app.xline_handle);...

4 years ago | 0

Answered
I'd like to ask if there is a problem with the GUI when running the face recognition image, which leads to a problem with the preprocessed image. The non-existent field is ref
Initialize handles.face_detect in the OpeningFcn: % Choose default command line output for gui handles.output = hObject; ...

4 years ago | 0

Answered
How to plot variables with different array sizes?
plot(t1,Y1) hold on plot(t2,Y2) plot(t3,Y3)

4 years ago | 1

| accepted

Answered
Using a condition for two string comparison (strcmp)
stimulus = {'A'; 'C'; 'A'; 'B'}; response = {'A'; 'C'; 'B'; 'A'}; condition = {'not Sequence'; 'Sequence'; 'Sequence'; 'not Se...

4 years ago | 0

Answered
using a forloop to create vertical lines between regression line and scatter plot
X=[1;2;3;4;5;6;7;8;9;10]; Y=[17;7;15;13;17;34;35;30;46;31]; % I created a scatter plot using scatter(X,Y,'+','r') % and thi...

4 years ago | 0

Answered
Can I improve the efficiency of space use while saving my figures?
You can try increasing the height of the figure, e.g., by dragging the edge of it, or by setting its Position in your code. f1 ...

4 years ago | 0

| accepted

Answered
Passing name-value arguments to a function that calls feval
Use varargin{:} to send the contents of varargin to the feval function as a comma-separated list of arguments. % I want to pass...

4 years ago | 2

| accepted

Answered
How to output the multiple line in dialogue box app designer
msgbox(sprintf([ ... '===================================' ... '==================================\n' ... 'User: ...

4 years ago | 0

| accepted

Answered
How to display errordlg when input is non alphabet and non numeric( including negative(-) and fraction(/) symbol ) in matlab gui
Instead of checking for characters that aren't letters and aren't numbers, how about you check for characters that cannot be enc...

4 years ago | 0

| accepted

Answered
I want to run a loop until a value is reached and, then, I want to use that reached value to continue the loop
Hard to say for sure, but maybe some structure like this (but with a break condition - which was unspecified in the question): ...

4 years ago | 0

| accepted

Answered
How do I convert my cell array into a cell array of doubles?
S = load('pre_data_1.mat') S.pre_data1 S.pre_data1 = cellfun(@cell2mat,S.pre_data1,'UniformOutput',false); S.pre_data1

4 years ago | 0

| accepted

Load more