Community Profile

photo

Dennis


145 total contributions since 2018

Dennis's Badges

  • Introduction to MATLAB Master
  • 6 Month Streak
  • Knowledgeable Level 3
  • Solver
  • First Answer

View details...

Contributions in
View by

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

4 days ago | 0

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

6 days ago | 0

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

13 days ago | 0

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

18 days ago | 0

| accepted

Answered
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';

19 days ago | 1

| accepted

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

20 days ago | 0

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

20 days ago | 0

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

1 month ago | 0

| accepted

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

1 month ago | 0

| accepted

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

1 month ago | 0

| accepted

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

1 month ago | 0

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

1 month ago | 0

| accepted

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

1 month ago | 0

| accepted

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

1 month ago | 1

| accepted

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

2 months ago | 0

| accepted

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

2 months ago | 0

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

2 months ago | 0

| accepted

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

2 months ago | 0

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

2 months ago | 0

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

2 months ago | 0

Answered
Skipping even indices in a for-loop and subsequently avoiding the odd values to appear in the output
When you assign a value to A(3,3)=1, Matlab will create a Matrix of the size 3,3 and will fill empty fields with 0. A(3,3)=1 ...

2 months ago | 0

| accepted

Answered
delete variable file name
Try this: delete(sprintf('%s.sim',newname))

2 months ago | 0

| accepted

Answered
I am trying to add two numbers in App designer code view and i am getting following error message
You need to access the value stored in your edit fields: a = app.EditField.Value; b = app.EditField2.V...

2 months ago | 0

| accepted

Answered
hObject error in execution of a checkbox
Your checkbox function does not know 'hObject': function checkbox() handles.fig=figure; handles.cbh = zeros(40,1); handl...

2 months ago | 1

| accepted

Answered
How to write repeating string with variables in for loop
Check if this works for you. for i=1:75 line1 = ' new ScreenItem(ScreenVideoComponent,'; line2 = sprintf(' Video...

3 months ago | 1

| accepted

Answered
Having some problems with recursive function
This strange behaviour originates in a unfortunate function name. function S = mySum(A) S = myplus(A, length(A)) function ...

3 months ago | 0

| accepted

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

3 months ago

Solved


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

3 months ago

Solved


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

3 months ago

Solved


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

3 months ago

Load more