Answered
Fraser Suzuki Function written in MATLAB
Alright, found the paper you mentioned and plotted it in different programs. So... What is happening is that the authors of the...

10 years ago | 0

| accepted

Answered
legend text size changing while ticklabel size changing
what is happening is that you're setting all font sizes to 12. I haven't figure out how to set just the xticks to 12 but you ca...

10 years ago | 0

Answered
Need to remove repeated adjacent elements in an array
you can use diff to determine the consecutive same value numbers test = [1 1 1 1 2 2 2 6 6 6 6 2 2 2 2] mtest = [test t...

10 years ago | 1

Answered
HOW TO EXIST FROM A LOOP AND COME BACK TO IT AND THE ITERATION NUMBER CHANGE
with the very vague explanation i have no idea how you are coming back to a loop after breaking out of it. But i'll take a stab...

10 years ago | 0

Answered
Trying to input a range of numbers and generate a matrix...
Okay so i'm not familiar with the Black-Scholes method or the name doesn't ring a bell but looking at the code is see a few issu...

10 years ago | 2

Question


Is it worth taking MathWorks Certified MATLAB Exams
In a question a few days ago (maybe a week) I was made aware of the MathWorks Certification Program. I've never heard of it or ...

10 years ago | 1 answer | 1

1

answer

Answered
Indexing matrices along a given dimension
Pardon my example it's not the best one but pay attention to what i'm trying to accomplish with the indexoffset %examples ...

10 years ago | 0

| accepted

Answered
How to count the value in nested if-else statement in matlab
well first of all msgbox doesn't work that way. if you need to i =1 msgtext = sprintf('perfect = %d',i); h = msgbox...

10 years ago | 0

Answered
Deleting runs of zeros
you would find the indexes that equal zero then if the number is greater or equal to three then delete them from original like i...

10 years ago | 0

Answered
How to combine multiple images with different size as one?
you can zero pad your images so they are all the same size IT = zeros(256,256,1,25); for ind= 1:25 rows = 128+ran...

10 years ago | 1

| accepted

Answered
converting data in Excel CSV to specific format in text
so... i'm curious what if an excel-csv is different from the first csv file you wrote. Either way the methods to import/read fr...

10 years ago | 0

| accepted

Answered
How can I present my graph on a document
There is the option to disable displaying of the code. How to get to that option depends on which version of matlab you are run...

10 years ago | 0

| accepted

Answered
how to find the largest power of 2 that a number is divisible?
You can use the function factor() since it returns the prime factors of the input number. So since it breaks it down to the pri...

10 years ago | 1

Answered
How to change a specific part in a specific line in a text file?
you'll need to use fopen, fgetl, and fprintf() to do this. To accomplish this is that you'll need to open the file in read/writ...

10 years ago | 0

Answered
How can I find adjacent identical values in a vector, flanked on either side by outliers?
Keep in mind the comments from the cyclist and Star Strider but to use diff you can do something like this. HR=[136 137 1...

10 years ago | 0

| accepted

Answered
Toggle button background color unable to change
Well i setup a simple example gui using your code and your code works for me. Things i would try is shut down matlab and try ag...

10 years ago | 0

Answered
How can I check if indices in a single array equal each other?
you can do this with one if statement and possible no if statements if i spent more time but this should do the trick. by using...

10 years ago | 1

| accepted

Answered
How to remove echo from wav file
I've also haven't studied that but i remember coming across a mathworks example in the past. I couldn't find the exact link but...

10 years ago | 0

Answered
How to ajust matlab GUI axes appearence?
use the call axis equal like in the example below t = 0:.01:2*pi; x = 10*cos(t); y = 10*sin(t); figure,plot(x,...

10 years ago | 0

| accepted

Answered
GUI: Text note scrolls outside axes limits
Well what you need to do is turn clipping on. x = 1:10; y = randi(10,1,10).^2; figure,plot(x,y); yble = y>=...

10 years ago | 1

| accepted

Answered
Why don't I have a Matlab license?
you do not automatically get a license just because you register on the site with an university email with a license. Matlab li...

10 years ago | 0

Answered
Calculate a mean if two statements are true
you don't need find. you just need to use logical indexing through mean(cellm(6,~cellm(7,:) & cellm(5,:))) which will *...

10 years ago | 0

| accepted

Answered
how to rectify this error and make the code work?
for the error "index exceeds matrix dimensions" it is far simpler for you to debug it and learn from it. All you need to do is ...

10 years ago | 0

Answered
i am trying to divide a RGB image into 4*4 block.below program is not running.
first off i would highly recommend that you do not call your function repmat() as it is already a matlab function. in the li...

10 years ago | 1

| accepted

Answered
Set uicontrol position relative to a subplot
well your explanation of the problem is exactly how you'd do it. you would first get the position of the subplot then perform t...

10 years ago | 1

Answered
Manually adding plots and legends with a Button Press
why not try something like this out clc; clear all; nplts = 0; legendstr = []; figure(1),hold on; cont = inpu...

10 years ago | 1

Answered
How do i export text file into matrix with 4 different data? Pls advice how should the code will be ?
To answer your question, it's as simple as reading the documentation on <http://www.mathworks.com/help/matlab/ref/fprintf.html f...

11 years ago | 0

Answered
Plot a small circle moving along a larger semi-circle
well i'd say you were very close but should have tackled the problem from another angle. %Equation for semi circle ...

11 years ago | 0

| accepted

Answered
Problem with the main axes object being removed on GUIDE when using subplots
well there a few things you could do. Both require some trickery in matlab as far as i know subplots are not supported for GUID...

11 years ago | 0

Answered
getting an error " not enough input arguments"
This sounds like the perfect spot to use the editor's debug abilities. it error that matlab gives you should indicate what wher...

11 years ago | 0

Load more