Respondida
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 ...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 1

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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_...

más de 4 años hace | 0

Respondida
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); ...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 1

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 1

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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. ...

más de 4 años hace | 1

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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(:);...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 1

Respondida
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...

más de 4 años hace | 1

| aceptada

Respondida
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);...

más de 4 años hace | 0

Respondida
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; ...

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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 ...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 2

| aceptada

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

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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): ...

más de 4 años hace | 0

| aceptada

Respondida
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

más de 4 años hace | 0

| aceptada

Cargar más