2.731 total contributions since 2014

Professional Interests: Software Engineering, Target Tracking, Video Streaming apps

Answered

HELP FOR A LOOP FOR-END: In an assignment A(:) = B, the number of elements in A and B must be the same.

Federico - the line of code that generates the error is y(t)=B*csi(1,t-1)+(B*csi(2,t-1)*po+k)*rn(t) because you are tryin...

HELP FOR A LOOP FOR-END: In an assignment A(:) = B, the number of elements in A and B must be the same.

Federico - the line of code that generates the error is y(t)=B*csi(1,t-1)+(B*csi(2,t-1)*po+k)*rn(t) because you are tryin...

ongeveer 6 uur ago | 0

Answered

compare using if and or condition

So the second condition is if the Flow_a is gretaer than Flow_b by just 5%. Does this mean that Flow_a cannot be more than 5% gr...

compare using if and or condition

So the second condition is if the Flow_a is gretaer than Flow_b by just 5%. Does this mean that Flow_a cannot be more than 5% gr...

ongeveer 6 uur ago | 0

Answered

How to Add Element/Item to Listbox in Matlab GUI (push button, listbox)

Thomas - perhaps the condition ~strcmpi(Items_2, Item_1) is never evaluating to true and so you never enter the body of the wh...

How to Add Element/Item to Listbox in Matlab GUI (push button, listbox)

Thomas - perhaps the condition ~strcmpi(Items_2, Item_1) is never evaluating to true and so you never enter the body of the wh...

ongeveer 14 uur ago | 0

| accepted

Answered

Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 921-by-1.

Wilfredo - it isn't clear which line is throwing the error but piece of code caught my eye alpha(n+1,:)=(-g*sin(theta(n+1,:)))/...

Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 921-by-1.

Wilfredo - it isn't clear which line is throwing the error but piece of code caught my eye alpha(n+1,:)=(-g*sin(theta(n+1,:)))/...

3 dagen ago | 0

| accepted

Answered

Why does the Index exceeds the number of array elements

Wilfredo - take a look at these lines for j = 1:length(TotalForce) if j <= length(TotalForce) if TotalForce(j) >...

Why does the Index exceeds the number of array elements

Wilfredo - take a look at these lines for j = 1:length(TotalForce) if j <= length(TotalForce) if TotalForce(j) >...

4 dagen ago | 1

| accepted

Answered

Graphs and tables using GUI

Pratishtha - your code is U = uitable('Data', net_a_b_error); set(handles.uitable2,'Data',num2cell (U(:))) Why are you creati...

Graphs and tables using GUI

Pratishtha - your code is U = uitable('Data', net_a_b_error); set(handles.uitable2,'Data',num2cell (U(:))) Why are you creati...

4 dagen ago | 0

Answered

Webcam preview in GUI axes is shown as black image

Valentin - please see similar question and answer at https://www.mathworks.com/matlabcentral/answers/466753-webcam-preview-in-gu...

Webcam preview in GUI axes is shown as black image

Valentin - please see similar question and answer at https://www.mathworks.com/matlabcentral/answers/466753-webcam-preview-in-gu...

4 dagen ago | 0

| accepted

Answered

Excel plotting using popup menu

Varun - when you import the data from the Excel file, you are doing handles.data1=xlsread(filename, selectedsheet) data1=handl...

Excel plotting using popup menu

Varun - when you import the data from the Excel file, you are doing handles.data1=xlsread(filename, selectedsheet) data1=handl...

4 dagen ago | 0

| accepted

Answered

Webcam preview in GUI not showing up

The issue seems to be because the cam object is a local variable within the OpeningFcn function. When the function completes, th...

Webcam preview in GUI not showing up

The issue seems to be because the cam object is a local variable within the OpeningFcn function. When the function completes, th...

5 dagen ago | 0

| accepted

Answered

how to select a variable in listbox then click on the delete button and this variable disappears from the listbox and database

Aymen - you haven't indicated how you are creating your GUI (using GUIDE, programmatically, or with App Designer) so the general...

how to select a variable in listbox then click on the delete button and this variable disappears from the listbox and database

Aymen - you haven't indicated how you are creating your GUI (using GUIDE, programmatically, or with App Designer) so the general...

8 dagen ago | 1

| accepted

Answered

My Code can not read recorded audio file.

Abdullah - try using audiowrite to save your audio data to a file with an ogg extension. I think that your code is using save wh...

My Code can not read recorded audio file.

Abdullah - try using audiowrite to save your audio data to a file with an ogg extension. I think that your code is using save wh...

9 dagen ago | 0

Answered

Plotting Selected Items from a List

autumn - try the following [objects] = listdlg('ListString',... % my 22 objects are inserted here 'PromptS...

Plotting Selected Items from a List

autumn - try the following [objects] = listdlg('ListString',... % my 22 objects are inserted here 'PromptS...

13 dagen ago | 0

| accepted

Answered

Difference between Integral and trapz

Kushal - from trapz, this function computes the approximate integral of Y via the trapezoidal method with unit spacing. So it is...

Difference between Integral and trapz

Kushal - from trapz, this function computes the approximate integral of Y via the trapezoidal method with unit spacing. So it is...

15 dagen ago | 0

Answered

Matlab will recognize some strings, but not all

Joshua - from this code strcmp(Data(k-4:k-2), "VV")) you are comparing the two character string "VV" with a three character st...

Matlab will recognize some strings, but not all

Joshua - from this code strcmp(Data(k-4:k-2), "VV")) you are comparing the two character string "VV" with a three character st...

15 dagen ago | 0

| accepted

Answered

I can't solve this problem. Please help me

Junhyuk - try prefixing the V90 (function) parameter with a @. So change the line [Dax,Mbeta,Mr,P,Cdax,Cp,a,theta,omr]=powercur...

I can't solve this problem. Please help me

Junhyuk - try prefixing the V90 (function) parameter with a @. So change the line [Dax,Mbeta,Mr,P,Cdax,Cp,a,theta,omr]=powercur...

16 dagen ago | 0

| accepted

Answered

How to set focus in GUI?

Leif - since you are using GUIDE, why not just use the tab key with custom tabbing behaviour to define how focus shifts from one...

How to set focus in GUI?

Leif - since you are using GUIDE, why not just use the tab key with custom tabbing behaviour to define how focus shifts from one...

16 dagen ago | 0

| accepted

Answered

How do you create a push button that saves data from a GUI?

deenessen - you haven't given us much to work on, but presumably your GUI has a button that, when pushed, you want to save some ...

How do you create a push button that saves data from a GUI?

deenessen - you haven't given us much to work on, but presumably your GUI has a button that, when pushed, you want to save some ...

16 dagen ago | 0

| accepted

Answered

How do I break while loop using a switch in app designer

Johnny - without knowing how SwitchValueChanged is called, I suspect that the problem might be because this function ends up bei...

How do I break while loop using a switch in app designer

Johnny - without knowing how SwitchValueChanged is called, I suspect that the problem might be because this function ends up bei...

16 dagen ago | 0

Answered

Could anyone help me how to display the top three highest values in each column and display the other values to be zero.

jaah - try using sort to sort the columns of your matrix in descending order B = sort(A, 'descend'); To set all but the first ...

Could anyone help me how to display the top three highest values in each column and display the other values to be zero.

jaah - try using sort to sort the columns of your matrix in descending order B = sort(A, 'descend'); To set all but the first ...

16 dagen ago | 1

Answered

Error using patch Vectors must be the same lengths.

Varun - your Z seems to be 1x4 array, but the x and y are 1x5. Your code maxAllowablePoints = 5; numPointsClicked = 0; while...

Error using patch Vectors must be the same lengths.

Varun - your Z seems to be 1x4 array, but the x and y are 1x5. Your code maxAllowablePoints = 5; numPointsClicked = 0; while...

18 dagen ago | 0

Answered

Undefined function 'matlabFunction' for input arguments of type 'double'.

Akshay - what can you tell us about the signature for the matlabFunction? You say that Undefined function 'matlabFunction' for i...

Undefined function 'matlabFunction' for input arguments of type 'double'.

Akshay - what can you tell us about the signature for the matlabFunction? You say that Undefined function 'matlabFunction' for i...

18 dagen ago | 0

Answered

Callback button how to add function

Isperih - if your function myfunctionlebc is saved to a file named myfunctionlebc.m, then you can call this function directly f...

Callback button how to add function

Isperih - if your function myfunctionlebc is saved to a file named myfunctionlebc.m, then you can call this function directly f...

18 dagen ago | 0

| accepted

Answered

STOP WHILE CYCLE FROM MOBILE APP

Some GUIs that are designed in a similar manner with a "tight" while loop (i.e. a loop that is not interruptible) require that y...

STOP WHILE CYCLE FROM MOBILE APP

Some GUIs that are designed in a similar manner with a "tight" while loop (i.e. a loop that is not interruptible) require that y...

19 dagen ago | 0

| accepted

Answered

kronecker product in a matrix

Ali - perhaps the code could be h = zeros((2*N + 1) * size(hx,1), N); for k=1:N Ekn1 = zeros(N,1); Ekn1(k) = 1; ...

kronecker product in a matrix

Ali - perhaps the code could be h = zeros((2*N + 1) * size(hx,1), N); for k=1:N Ekn1 = zeros(N,1); Ekn1(k) = 1; ...

19 dagen ago | 0

| accepted

Answered

Matlab adds additional margin to an image!

Amin - from your code ax = uiaxes(fig,'position',[78 120 240 240]); imshow('Support1.png','parent',ax); ax = uiaxes(fig,'posi...

Matlab adds additional margin to an image!

Amin - from your code ax = uiaxes(fig,'position',[78 120 240 240]); imshow('Support1.png','parent',ax); ax = uiaxes(fig,'posi...

19 dagen ago | 2

| accepted

Answered

Unable to place mysql query

Raj - it looks like you are missing some spaces between the word AND and the column 'ANDlatitude_eb BETWEEN'52.5012'AND'52.505...

Unable to place mysql query

Raj - it looks like you are missing some spaces between the word AND and the column 'ANDlatitude_eb BETWEEN'52.5012'AND'52.505...

21 dagen ago | 0

| accepted

Answered

Produce matrices through for loop

Ali - if the output matrix of each iteration is of dimension 102x1, then you could store each output as a column in a 102xN matr...

Produce matrices through for loop

Ali - if the output matrix of each iteration is of dimension 102x1, then you could store each output as a column in a 102xN matr...

22 dagen ago | 1

| accepted

Answered

How to convert an array to a one-line string?

Ercument - you could try using rehape to convert your numeric matrix into a single row C = str2num(A) * str2num(B); D = num2st...

How to convert an array to a one-line string?

Ercument - you could try using rehape to convert your numeric matrix into a single row C = str2num(A) * str2num(B); D = num2st...

22 dagen ago | 0

| accepted

Answered

Plot a graph embedded in a function by caling this function in App Designer

Mehmet - does your function (to draw the graph) expect any input parameters? When your GUI is running, at what point do you want...

Plot a graph embedded in a function by caling this function in App Designer

Mehmet - does your function (to draw the graph) expect any input parameters? When your GUI is running, at what point do you want...

22 dagen ago | 0

Answered

Write a function called minimax that takes M, a matrix input argument and returns mmr, a row vector containing the absolute values of the difference between the maximum and minimum valued elements in each row. As a second output argument called mmm,

Is my logic correct? I'm not clear on why you need the m. In fact, doesn't the line of code m=M([1:end,0); fail since there i...

Write a function called minimax that takes M, a matrix input argument and returns mmr, a row vector containing the absolute values of the difference between the maximum and minimum valued elements in each row. As a second output argument called mmm,

Is my logic correct? I'm not clear on why you need the m. In fact, doesn't the line of code m=M([1:end,0); fail since there i...

22 dagen ago | 0