Answered
how get value at pos(3) position by using "datacursormode on" in axes ???
muhammad - I suspect that you will need to do something similar to <https://www.mathworks.com/matlabcentral/answers/157879-how-t...

9 years ago | 0

Answered
i am writting a code for Vigenere Cipher but i am troubled with a question that how could i repeat key as that of my text to be ciphered
mahnoor - the problem is with k=repmat((key),1,length(plain_text)) You don't want to repeat the *key* for each letter of...

9 years ago | 1

| accepted

Answered
Fix Values of a slider in GUI to be multiple of two
vittorio - you can try discretizing the slider values as at <https://www.mathworks.com/matlabcentral/answers/153278-discretizing...

9 years ago | 0

| accepted

Answered
why does ln not work
Jon - use <https://www.mathworks.com/help/matlab/ref/log.html log> for the natural logarithm. >> log(2) *ln* is not a bui...

9 years ago | 1

Answered
Saving output from MATLAB GUI as a list.
Isura1992 - I think that you will want to save the set of data to a mat file and then on subsequent uses of your GUI, append dat...

9 years ago | 0

| accepted

Answered
Login with GUI Matlab
Muhammad - why are you comparing *a* with *b* l=strcmp(a,b); if l==1 % etc. end Aren't these the username and p...

9 years ago | 0

Answered
Displaying Timer Function in Graph
sufyan - suppose that your timer starts when you press the start button in your GUI. The pushbutton callback would look somethi...

9 years ago | 0

| accepted

Answered
I have made a function in MATLAB GUI which will be executed every 9 bytes are received from serial port, but the plot command in this function usually plots the graphic in Figure window of MATLAB instead of my axes, don't like what the other function
Nguyen - you would need to show some of your code (and in particular that which plots the data) so that we can comment on what m...

9 years ago | 0

| accepted

Answered
How to update the slider when I need to show different series of images (MATLAB GUI, not programmed)
Pan - since your *slider2_Callback* uses the images from *handles.Img*, then either you will need to replace them with the *Img_...

9 years ago | 0

| accepted

Answered
Sum the Product of Two quantities
Shane - does *x* range from 0 to 11? I think that you are trying to use <https://www.mathworks.com/help/matlab/ref/sum.html sum...

9 years ago | 0

Answered
I need to solve the second order differential equation using Euler method. I am not sure how to deal with matrices and their dimensions. The code gives an error in using vertcat. The equation is in the attached file.
Alisher - the error is with the line B = [0; c]; where *c* is a 1x26 array and so is a row. The above line of code tries...

9 years ago | 0

Answered
Hello, How can I use output data from a function as input data to another function?
salim - presumably your functions are as described at <https://www.mathworks.com/help/matlab/ref/function.html Declare function ...

9 years ago | 0

Answered
How can I specify axis spacing?
kanyvt - see <http://www.mathworks.com/help/matlab/creating_plots/change-tick-marks-and-tick-labels-of-graph-1.html specify axis...

9 years ago | 2

Answered
How to plot graph colors?
kanyvt - the colour can be represented by a 1x3 array where all components are between zero and one. (The first for Red, the se...

9 years ago | 1

Answered
How to create time series sum of matrices using loop
real334 - look closely at your code C = cell(750,1); C2=C; for k = 1:750; C{k}=B^k; end for j = 2:750; C2{...

9 years ago | 0

Answered
Plot multiple subplot in iteration for each data set.
Abhi - since you are grouping the results in batches of five, then you could determine the batch "id" as for k=1:size(fitRes...

9 years ago | 0

| accepted

Answered
Moving Object around Ploygon
John - you may first want to determine those points along the polygon that you wish the object to traverse. You can use <https:...

9 years ago | 0

Answered
(Beginner)Simple for-loop! Help!
Magnarok - rather than conditioning on sin(i) > 0 use y(i) > 0 since those are the values of the sine curve. Rem...

9 years ago | 1

| accepted

Answered
There seems ti be problem with the positioning numbers of GUI. can you please provide me with the right answers.
Jayden - it would be a lot easier to use <https://www.mathworks.com/help/matlab/creating_guis/about-the-simple-guide-gui-example...

9 years ago | 0

Answered
Combining several loops in one big loop
Sascha - let's first size the *NI* array appropriately. NI = zeros(606,16505); I'm not sure if this is the size you rea...

9 years ago | 0

| accepted

Answered
Nested For Loop! Long running Time
Zoubeir - I'm noticing the same with your code for a 3744x5616 RGB image. It seems though that the bottleneck is with the "seco...

9 years ago | 1

| accepted

Answered
How to have my array continuously expanding in a for loop?
David - try concatenating using the square brackets stuck = []; M = [1.0 1.5; 2.0 2.3; 1.7 2.2]; stop=length(M); n=1; ...

9 years ago | 0

| accepted

Answered
How to limit user to only inputting matrices
isaiah - the <https://www.mathworks.com/help/matlab/ref/input.html input> function treats the input as if it were an expression....

9 years ago | 0

Answered
Noob Question about Functions
Daniel - are you sure that you are starting your code off with the line `function EA3()`? Typically, this error message is beca...

9 years ago | 0

| accepted

Answered
I having trouble with functions
Jim - it isn't clear why you are overwriting your *r* and *Q* for the first half with that from the second half. Try keeping yo...

9 years ago | 0

| accepted

Answered
Subscripted assignment dimension mismatch. (Matrices)
mike - the error message is telling you that you are making an invalid assignment. For example, the following produces the same...

9 years ago | 0

Answered
finding times on graph when it goes from 0 to 1
Grant - you can use <https://www.mathworks.com/help/matlab/ref/diff.html diff> to calculate the differences between adjacent ele...

9 years ago | 2

Answered
HOW TO PERFORM 3 LSB AND 4 LSB REPLACEMENT
aditya - to replace the least significant bits of your pixel, you can use <https://www.mathworks.com/help/fixedpoint/ref/bitset....

9 years ago | 0

Answered
For Loop Increment Value
Just do for k=1:2:9 % do something end where we have defined the step size to be two.

9 years ago | 2

| accepted

Answered
How to write a prorgram to compute sin(x) without using trigonometric function that uses taylor series?
Jake - from <https://en.wikipedia.org/wiki/Taylor_series>, _a Taylor series is a representation of a function as an infinite sum...

9 years ago | 3

| accepted

Load more