Top 5% contributor
Now cla command is working properly. Maybe I forgot to delete one off the hold off command.
Answered 3 years ago
The computational time of first tic-toc is 0.000050 seconds.and second computatioal time is 0.000521 seconds. Nearly ten times b...
Asked 3 years ago
I have created a GUI and deployed it. It works well but sometimes it gives error but user can't see it. Is there a way to...
Asked 1 year ago
Hi every one. As you can see in the picture at the following link I can not see properties of user defined classes in my workspa...
Asked 2 years ago
How can I change property of a user defined class by using set(my_class,'my_property',my_value)
Hello, I am trying to learn classes in Matlab here is a basic question. How can I write two classes A and B in order to represen...
Let create a cell multi dimensinal cell A with the following code.
On my GUI there is a axes called as axes1 and I added ButtonDownFcn to axes1. After some plot I want to clear t...
I want to combine discontinious line as follows.
h1=plot([0 1],[0 1],'DisplayName','data1')
Hi everyone. Here is an basic but important question. Think about a GUI which have a textbox named as edit1 and let us add an ev...
Hi everyone. Please run the following code. It will create a scatter grap with 5 points. I want to select the nearest point on t...
Here is my problem I am goint write a large program and at the begining I want to decide the way that I will code in order to ru...
The following code is taken from the book "MATLAB Guide to Finite Elements" and it takes too much time to run this code and I am...
I am using edit box as an input window. When user click enter button callback of the edit box runs and takes the input...
Regardless of input, output the string 'yes'.
2 years ago
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
3 years ago
There will always be at least one prime in the matrix.
Input in = [ 8 3
5 9 ]
Output out is 4...
Given n, find the sum of the digits that make up 2^n.
Input n = 7
Output b = 11
since 2^7 = 128, and 1 + ...
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1.
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.
inner product of two vectors
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]
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false.
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
Triangle numbers are the sums of successive integers. So 6 is a triangle number because
6 = 1 + 2 + 3
which can be displa...
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
Remove the nth column from input matrix A and return the resulting matrix in output B.
A = [1 2 3; 4 5 6];
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
Join the conversation