Community Profile

Dennis

Last seen: Today
150 total contributions since 2018

View details...

Contributions in
View by

Solved

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

3 days ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

3 days ago

Solved

Given a and b, return the sum a+b in c.

3 days ago

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

4 days ago

Generating an unknown ammount of Buttons in App Designer
Hi, your code should almost work, you need to remove the preallocation with zeros. You can let your loop run backwards instead:...

8 months ago | 1

How to fix uicontrol callback error and retrieve the status of a pushbutton from a callback function ?
There are two different types of buttons in MATLAB, push buttons and toggle buttons. The latter actually have the function you d...

8 months ago | 0

| accepted

Undefined function 'mtimes' for input arguments of type 'matlab.ui.control.NumericEditField' error
app.S.Value = (C_ratio)^2*((app.V.Value*N)/P); You forgot the '.Value', the error message tells you that you can not multiply ...

9 months ago | 1

Edit box in Gui app
Do you get any error messages? You are overwriting the handle of your edit box, thus you use the wrong handle when you try to u...

9 months ago | 0

| accepted

Get Values of uibuttongroup uicontrol checkboxs when i clicked on other uibuttongroup uicontrol pushbutton
You need to pass the handle of your checkboxes to your submitcb to access the values. First add those handles as additional inp...

10 months ago | 0

Unable to check checkboxes AppDesigner
You need to set the values of your checkbox to true or false, not to 0 or 1. MWE: t=uitable; t.ColumnFormat={'logical'}; t.Co...

10 months ago | 0

How to save and load App Designer app state in between sessions
You should load your .mat file into a structure, and pass that structure to other functions. S=load('tccworkspace.mat'); You ...

10 months ago | 0

converting randit to randi
matrix(i,j)=randi(9); Instead of creating single random numbers in a loop maybe consider creating them as vector/matrix. m...

10 months ago | 0

building a for loop with t = t+1
A few things first: i is often used to increment for loops, but it is completly up to you if you use i, t or something else. ...

10 months ago | 0

| accepted

convert matrix to vector in a loop
Please check if this works for you: A=randi(100,144,10); %matrix of size (144,10) B=reshape(A',40,36); B=B';

10 months ago | 1

| accepted

Plotting Negative Values in a Loop
As KSSV already pointed out you need integers as array indices. Additionally i would recommend to use markers to make your data...

10 months ago | 0

How can I use imellipse on a GUI?
When asking a question you should always include the complete error message. My guess is that your error message tells you that...

10 months ago | 0

how to get string as output from inputdlg?
inputdlg returns a cell array and not a string. Try data = xlsread(filename,sheet{1},xlRange);

11 months ago | 0

| accepted

How to retrieve datas from multiples GUIs into a function ?
The difference is where you store your values. The setappdata/getappdata needs an object to store your data, which is provided a...

11 months ago | 0

| accepted

dealing with checkbox in GUI
Use a loop and uncheck/check them. %create 20 checkboxes for i=20:-1:1 handles.uihandles(i)=uicontrol('style','checkbox...

11 months ago | 0

| accepted

Using Radio Buttons with Push Button
Try changing switch get(eventdata.uibuttongroup1, 'Tag') to switch get(handles.uibuttongroup1.SelectedObject) And you n...

11 months ago | 0

Multiple variable generated by one GUI element
Most likely you do not want to store each value in a different variable. Please check Stephen's tutorial to learn more about thi...

11 months ago | 0

| accepted

How to replace the "files required for your application to run" in app designer
Yes, this can be done. There is a really good blog post about this topic, which can be found here. As stated in the blog you ca...

11 months ago | 0

| accepted

Matrix dimensions must agree. Error Message appears.
In your function PTFLASH_VLE_PRVDW you define: fL=zeros(1,c); fV=[1,1,1]; next you try to substract fV - fL, which wi...

11 months ago | 1

| accepted

How to get difference between two time values ?
You can use etime, but you need to convert your strings first. I hope this helps: a=datetime pause(5) b=datetime a=datev...

11 months ago | 0

| accepted

Undefine function or variable
In general you are more likely to receive an answer if you describe the problem you are facing and include any error messages. I...

11 months ago | 0

Specifying attributes of objects created in GUIDE
If you want to do this in guide you can get there in 3 steps: 1.) right click on your object 2.) chose 'Property Inspector' 3...

12 months ago | 0

| accepted

i keep on getting this error even after changing my codes multiple times using .* and etc. it keep on showing that i have prob with my equation when there is no visible problem.
Usually the error is straight forward and you can always check the size of your elements with (size) or using the debugger. In ...

12 months ago | 0

Assign values to a structure using App designer
There are two different types of edit fields in appdesigner (numeric and text). In the picture you show are only text edit field...

12 months ago | 0

How to give output of one push button as input to another push button??
It would be really helpful to get any information about what you have tried and why it is not working (wrong result, error messa...

12 months ago | 0