Answered
How can i increase the speed of my video for face detection
Do not use the names of built-in functions as variables: "imwrite" is a bad choice. As far as I know, |imshow| creates a new ...

9 years ago | 0

Answered
How can I modify an object within ode45?
How did you try to reference it? You have to provide QP as input argument to have it available inside |quadEOM|. I guess: [...

9 years ago | 0

Answered
How to call a character saved in 'uicontrol' 'string'?
It is not clear what "It displays all the names saved in 'ConnectionObjectProperties'" means. What is "it"? The shown code looks...

9 years ago | 0

| accepted

Answered
hi i am student and i need license number ?
This forum is mainly supported by voluntary Matlab users. We cannot sell you a student license. You can do this through the web ...

9 years ago | 2

Answered
any single vector element =0 than loop again rotate and again loop start from first line
I'm not sure, if I understand the question correctly. A guess: ready = false; while ~ready ... your code v = r...

9 years ago | 0

| accepted

Answered
How to get Lab values from RGB images
Sounds like a job for |rgb2lag|: rgb = imread(FileName); lab = rgb2lab(rgb); See also <https://de.mathworks.com/matla...

9 years ago | 0

| accepted

Answered
Subtraction matrixes with different dimensions
Without the Statistics Toolbox and Matlab >= 2016b: D = sqrt(((Al(:,1) - C(:,1).') .^ 2) + ... ((Al(:,2) - C(:,...

9 years ago | 1

Answered
How to upload an image to a GUI frame?
|gca| is a command. After gca = imagedisplay; the term "gca" is redefined as variable which contains a handle now. Most ...

9 years ago | 0

Answered
Velocity of moving object at x and y axis
You can get the velocities in X and Y direction independently. Vx = gradient(X, TimeStep); Vy = gradient(Y, TimeStep); ...

9 years ago | 2

| accepted

Answered
How do I change variable names without getting matrix dimension error?
This must fail: Rs = dataArray{:, 3}; % Rs is an array Rs = 0; % Rs is overwritten by the scalar 0 ...

9 years ago | 0

Answered
How do i convert complex Cell array to a single array in matlab?
In a matrix all rows have the same number of columns. Then the first row cannot be "5", when 2nd row contains 2229 columns. You ...

9 years ago | 0

Answered
Length of cells within cell array
x{1,1}{1,1} = 1; x{1,1}{2,1} = [2;3;4]; x{2,1}{1,1} = [3;1]; x{2,1}{3,1} = [1;5;2;4]; The trivial answer: len...

9 years ago | 1

| accepted

Answered
carrying out simple functions on all cells within an array
Use |double| instead: Normalised_Cell = cellfun(@(v) double(v) ./ double(N), B, 'UniformOutput', false)

9 years ago | 0

| accepted

Answered
Problem with using isfield
If you have a structure with 4 fields, checking the existing of fields is not necessary. I guess: if isfield(shape,'leftLun...

9 years ago | 0

Answered
Get button answer (Uicontrolled)
n = 15; i = 1; figure tbn1 = uicontrol('Style', 'togglebutton', 'String', 'Stop','Min',0,'Max',1,... 'Positi...

9 years ago | 0

| accepted

Answered
Need help in code optimization for distance calculation between points.
A first step is to clean the loop: n_dist=(((DATA_x_s-xx) .^ 2) + ((DATA_y_s-yy) .^ 2)); %Distance Calculation [val_min_...

9 years ago | 0

| accepted

Answered
Can't Use getappdata on a Callback
You use these command to access the ApplicationData of axes1: K1 = getappdata(handles.axes1, 'image1') setappdata(handle...

9 years ago | 1

| accepted

Answered
How to imread this binary image this way?
How did you store the image in MAT format? By |save|? Then simply |load| it: Data = load('binaryImage_okoli.mat'); Now I...

9 years ago | 0

| accepted

Answered
[Homework Help] Stuck with result. && use not working as intended (easy?)
I get the correct answer 1 also. I assume you do not run the "location.m" function you assume you do. Check this: which loc...

9 years ago | 1

Answered
How do I use fprintf to show the entire array in one ouput statement
fprintf('%i %i %i %i %i\n', Z.'); or: fprintf('%4i %4i %4i %4i %4i\n', Z.'); Note that the matrix must be transpose...

9 years ago | 5

| accepted

Answered
How to test a math function with different values of x?
Move the equations into a function: function [y, z] = Eqns(x) A = 3 * sin(x^3); B = 4 * x + 3; C = 2 * (x + 3); ...

9 years ago | 0

| accepted

Answered
How to stock line by line a text file
Str = fileread(FileName); CStr = strsplit(Str, '\n');

9 years ago | 0

Answered
How can I reset the tic/toc timer?
Do not run it as if, but simply run is in a newly opened Matlab session: system('matlab -r YourFunction'); See also: <ht...

9 years ago | 1

| accepted

Answered
Can we merge multiple files in MATLAB with any command?
I guess that you mean a digital voice file recorded by Sony software. They cannot be opened or joined in Matlab directly. Either...

9 years ago | 0

Answered
is the code right?
Perhaps. It depends on what it should calculate. The lack of comments impede the understanding of its intention. But the code...

9 years ago | 0

Answered
I need to save outputs T_ip, T_op, T_new from the for loop into an array or arrays in order to plot.
... T_ipV = zeros(1, L+1) T_opV = zeros(1, L+1); T_newV = zeros(1, L+1); for z = 0:L q_in = m * cp * T_in...

9 years ago | 0

| accepted

Answered
Deleting the first 4 rows of a .csv file.
The CSV file does not contain numbers only, but the 2nd row contains a string. This does not work with |dlmread| or |csvread|. T...

9 years ago | 0

Answered
Variables deleting when in a function
No. The provided information does not allow to guess the reason, sorry. But you can find the problem using the debugger. Set a b...

9 years ago | 0

Answered
How to calculate averages for each rows from a specific column to a specific column in a matrix?
A = [1 2 3 4 5 6; ... 7 8 9 10 11 12; ... 13 14 15 16 17 18; ... 19 20 21 22 23 24; ... 25 26 ...

9 years ago | 1

Answered
Convert a cell array that contains numbers and NaN values to a matrix
The elements of the cell do not have the same size: W = cellfun('ndims', Acceleration); isequal(length(unqiue(W)), 1) ...

9 years ago | 0

Load more