Community Profile

Contact

Top 1% contributor

The 'Outport' will help you get the values in MATLAB Workspace. From there you can use it in your m-file. If you also want to sa...

accepted

1

Answered 1 year ago

Hello Everyone I have a doubt regarding plotting the data that is being generated in one GUI, in another window which consist...

4 Answers

0

Asked 2 years ago

Hello All I am trying to design a GUI in which the number of radio buttons change according to the number calculated by anoth...

2 Answers

Asked 1 year ago

Hallo I usually used load function to read text files. However, this time my text file has the first column as p1 p2 p3 and s...

Hallo Everyone I am writing data into an excel file. However, the range of the data to be stored keeps changing and I want to...

Hallo All I have been trying to save an axes object on an gui as jpg file but it takes up weird pictures, like sometime the p...

It doesn't know what handles.axes1 is. First use h = findobj('Tag',axes1) and then axes(h). I think it should work.

Answered 12 months ago

I think the problem is that 'fname' is not getting transferred from one callback function to another. The solution is using seta...

http://www.mathworks.de/de/help/physmod/simscape/ref/currentsensor.html Considering you have been using Simscape blocks. and...

http://www.mathworks.de/de/help/matlab/learn_matlab/calling-functions.html This will help.

Hey Ana, http://www.mathworks.de/de/help/matlab/creating_guis/share-data-among-callbacks.html i think this would be the best ...

You have to use str2num to change entered value to number. You can use that number then. http://www.mathworks.de/de/help/matl...

Anyway what you can do is in the callback function of your pushbutton, write this if else statement if (get(handles.radiobu...

for t = 1:2 x(t) = sin(2*pi*3*t); y(t) = sin(2*pi*15*t); c(t) = x(t).* y(t); end This should work

for n = 1 : nAbs if Absences(n) == 1 || Absences(n) == 2 fprintf('\n%5i \t\t\t %i\n',StudentNumber(n),Absences(n)) ...

the command 'pause'. It pauses the program until keypress.

That's because your conditions are wrong. If z>=2*t, then that means you have already satisfied the condition t<=z. And so you a...

http://www.mathworks.de/de/help/matlab/ref/figure.html?searchHighlight=figure I hope this helps!

Hallo Everyone I have quite a simple doubt, but one that has been bugging me for quite a while. As the question states, I am ...

1 Answers

Hi there! Do you really want structures in your program? If not, then you should remove the punkt in between. %Variable dec...

Answered 2 years ago

In the callback function of the Push Button, you can use val = get(handles.popupmenu,'Value') and then use an if else statement ...

Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

Solve this!

1 year ago

Calculate the output c as the percentage of a on b for given a and b.

Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

you just measured its surface area, that is the input.

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

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

Load more