Answered
Error using handle/handle set
The error happens because you are overwriting the edit uicontrols' handles in their callbacks. For instance: function edit5_Cal...

5 years ago | 0

Answered
nested cell array into single cell array
As far as I can tell, the variable A has this structure (I'm going to assume those 7's in the question should actually be 4's): ...

5 years ago | 1

| accepted

Answered
Substituting input array into an equation.
x = []; x_initial_size = numel(x); Set_data = 3; count = 0; while count < Set_data y = input('Input initial Pressur...

5 years ago | 0

| accepted

Answered
How to do column or row swapping or interchange in a matrix?
A(:,[5 2]) = A(:,[2 5]);

5 years ago | 4

| accepted

Answered
Undefined function or variable
This error happens because there is no variable called 'BW' defined. Perhaps it should be: [H,theta,rho] = hough(filtered_image...

5 years ago | 0

Answered
Matlab Code to display multiple edit field blocks
edit_1 = uicontrol('Style','edit'); edit_2 = uicontrol('Style','edit');

5 years ago | 0

Answered
I need help for 'Error using vertcat, Dimensions of matrices being concatenated are not consistent'
I think the error is in this line: A = [3.726 2.15 2.96 1.4 zeros(1,92); zeros(1,4) 3.726 2.15 2.96 1.4 zeros(1,88); zeros(1,...

5 years ago | 0

Answered
How to dra two lines on the image according to the points we receive from the user?
Maybe call getpts() two times, once for each line? Otherwise you will need to know which points belong to which line.

5 years ago | 1

Answered
Not showing output in command window of 'testing' script.
% Testing script load('Trained_Network.mat'); input = [ 0 0 1; 0 1 1; 1 0 1; 1 1 1; ...

5 years ago | 0

| accepted

Answered
how can I read and extract the 2 LSBs of every byte from the RGB image array ?
One way is to read the data as bytes (type uint8) like usual, then the 2 LSBs are the remainder after dividing by 4, e.g.: b = ...

5 years ago | 2

Answered
how to display whole text in dropdownlist?
It is because you specify a 100 pixel by 100 pixel listbox, and str is too long to fit in that amount of space. You can either s...

5 years ago | 0

Answered
Change block "Data Type conversion" to MATLAB Function Script.
Something like this? function out = convert_type(in) if ischar(in) % convert character array to numeric array ...

5 years ago | 0

Answered
The angle and radius above the complex plane.
Like this? theta = 0:10:360; r = linspace(1,2,numel(theta)); x = r.*cosd(theta); y = r.*sind(theta); figure() plot(x,y) O...

5 years ago | 0

Answered
seperating char data at matlab
Maybe you can use strsplit.

5 years ago | 0

Answered
How can i show only definite data values in bar plot?
X=1:3; Y=[100 50 35]; % 20 8 7 6]; bar(Y); text(X,Y,num2str(Y','%0.2f'),'HorizontalAlignment','center','VerticalAlig...

5 years ago | 0

Answered
Write a MATLAB user defined and Write a MATLAB program
I guess the statute of limitations has expired by now, so: function out = get_first_five(A) out = A(1:5); end function...

5 years ago | 0

Answered
Counter variable won't increment/decrement within a continuous DAQ function?
Maybe the problem is this: if i == 0 disp('even') i = i + 1; % i is now 1 end % at this point: % if i was...

5 years ago | 0

Answered
Creating a Factorial for an Input/Output Array using Loops
% Array = input('Enter an array of positive integers in brackets: '); Array = [4 7 2 0 3 1]; % can't take input here, so suppos...

5 years ago | 0

Answered
Assigning different patch objects to different subplots of the same figure in a conditional for loop
This code creates 4 patches (p3, p4, p5, p6) in one axes (p2), then makes a copy of patches p3 and p4 in axes p2 and makes a cop...

5 years ago | 0

Answered
Expand a nx1 cell array that has a single column of cells that are filled with 1xn cell arrays into a nxn cell array?
parentcell = cell(100,1); for i = 1:100 parentcell{i,1} = num2cell(randn(1,68)); end display(parentcell); vertcat(paren...

5 years ago | 0

Answered
Plotting using a for loop in Matlab and finding the highest three consecutive value, given imported spreadsheet table of 1x100 called 'P'?
P = randn(1,8); display(P); Npts = 3; [~,idx] = max(movsum(P,Npts,'EndPoints','discard')); display(P(idx+(0:Npts-1)));

5 years ago | 0

Answered
different behaviour when concatenating table colums
If both tables' SpO2_FiO2 columns are actually doubles, then both ways of concatenating do the same thing: SpO2_FiO2 = (1:3).';...

5 years ago | 0

Answered
Draw a TAble T
You can try using uitable.

5 years ago | 0

Answered
scatter3 data tip : suppress "initial display" value?
As far as I know, data tips only turn on if you turn them on (either programmatically or using the builtin MATLAB figure toolbar...

5 years ago | 0

Answered
Error using reshape: Size arguments must be real integers. Except all values are positive whole numbers?
I think the main problem is that you are removing an incorrect number of elements (if I understand what you are trying to do). H...

5 years ago | 1

Answered
GETDATA timed out before FRAMES were available
It may be because this line: if app.img1Availble = 1 && app.img2Availble = 1 && app.img2Availble = 1 contains syntax errors th...

5 years ago | 0

Answered
how to create cell array using matrix data?
If you need to know the row and column in order to assign to the corresponding element in an output matrix, then there is no nee...

5 years ago | 0

Answered
How to "Pick combination of elements of two different Matrices" ?
You can use repelem and repmat for this. X = [1 2]; Y = [5 6]; combos = [repelem(X(:),numel(Y)) repmat(Y(:),[numel(X) 1])]; ...

5 years ago | 1

| accepted

Answered
Giving step size to colorbar
If you had limits from 1 to 100, you would expect about 90% of the colors to be in the 10 to 100 range and about 10% to be in th...

5 years ago | 0

| accepted

Answered
extraction of longitudes and latitudes of areas with different data from NaN
This will take the lat/lon values where data1 has any non-NaN value at that lat/lon: S = load('matrice_derol.mat') good_idx = ...

5 years ago | 0

Load more