Community Profile

Contact

Top 1% contributor

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 ...

1 Answers

1

Asked 9 months ago

you would go ~isnan() to reverse the 1's to zeros and zeros to be 1.

accepted

3

Answered 1 year ago

since it is a nice simple pattern of (zeros for columns that are a multiple of 3) then: DesiredResult = ones(24,72); Desir...

2

Answered 30 days ago

since you're coding the uitable instead of using GUIDE you do not have the handles structure. you already have the handles for ...

Answered 7 months ago

that can be easily done with randperm(N,10) where N is the max number to be random.

Answered 10 months ago

well you can get away from tags and directly work with the handle object. for my example here lets say you have a GUIDE gui wit...

Well first you'll have to figure out how to work in cells. Since i do not know how you've got your subject.name constructed sub...

This should get you close to where you need to go [X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)...

Not sure what is going on since i can't reproduce it not updating. Here is a quick test i did using a few edit boxes and pushbu...

what you're missing is path = 'C:\temps (IT do not delete)\matlabAnswers\dirtest\'; dirData = dir(strcat(path,'*.wav'));...

if you are just looking for the total sum of the n dimensional array, then you can just do sum(temp(:));

yes you absolutely can. It just takes some basic knowledge of HTML and knowing how to get/parse/extract handle properties. ...

Answered 17 days ago

you can use the built in function unique to determine this: A =[ 1 0; 1 2; 1 3; 2 3; 2 4; 3 1; 3 6; 4 5] [c1,ia1,ic1] =...

Answered 4 months ago

so the behavior of the pushbutton_callback() function is to run when the push button is pressed. so you are 99% there. get rid...

Answered 5 months ago

I'm not sure what the imfuse gets you besides something to see but why not calculate the structural similarity of the images to ...

that is because sample is undefined but sample1 sample2 and sample3 is what you defined. how you're calling out that last line ...

Answered 8 months ago

try any(A>=N,2) so I don't know what z is but changing z to A i get the desired answer any(A>=16,2)|any(~diff(sort(A...

Well how to generate the lines will take a bit of thought but to get the lines [x,y] = meshgrid(0:0.1:1,0:0.1:1); u = x;...

Answered 9 months ago

Here is a little thing i threw together. function test() h = figure(1); hp = uipanel('Title','Main Panel','FontSize',...

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...

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...

first off i would highly recommend that you do not call your function repmat() as it is already a matlab function. in the li...

so you have a matrix of 10 rows, 26 columns and 4 deep. That would be a 10x26x4 matrix. to get just all rows for column a for ...

what you could do is use the set command for the axis. like set(gca,'YTick',[]); %which will get rid of all the markings f...

Answered 11 months ago

you can use hold on to keep adding to these plots x = 1:10 %time for i =1:3 y(i,:)=1*x+i; z(i,:)=2*x.^...

Answered 12 months ago

what submatrix means is a subset formed by taking a block of size mxn (in your example 2x2) from the original matrix. so the 2x...

you can use the linkaxes() to do just that. ax(1) = subplot(2,2,1); plot(rand(1,10)*10,'Parent',ax(1)); ax(...

since you want it to do both +50 and -50 you can't have the if/else structured that way. you'll have to do break it up. if you...

it is very possible to do so. check out <http://www.mathworks.com/help/matlab/ref/zoom.html for zoom> and on the left side of ...

Not entirely sure what you mean by move around the circle but here is an example: function clicktest() theta = 0:0.0...

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries