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...
Answered 1 year ago
I have a doubt regarding plotting the data that is being generated in one GUI, in another window which consist...
Asked 2 years ago
I am trying to design a GUI in which the number of radio buttons change according to the number calculated by anoth...
Asked 1 year ago
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...
I am writing data into an excel file. However, the range of the data to be stored keeps changing and I want to...
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...
Considering you have been using Simscape blocks.
This will help.
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.
Anyway what you can do is in the callback function of your pushbutton, write this if else statement
for t = 1:2
x(t) = sin(2*pi*3*t);
y(t) = sin(2*pi*15*t);
c(t) = x(t).* y(t);
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...
I hope this helps!
I have quite a simple doubt, but one that has been bugging me for quite a while. As the question states, I am ...
Do you really want structures in your program? If not, then you should remove the punkt in between.
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...
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.
Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice.
Reverse the vector elements.
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".
Join the conversation