Community Profile

Contact

Top 1% contributor

The issue is in subfunction function B = sortB(B,new_entry) B = sort([ B ; new_entry ]); end You are ...

accepted

1

Answered 7 months ago

Lets say you have a 3D matrix with m x n x k size. Then: [X,Y,Z] = meshgrid(1:m,1:n,1:k); plot3(X(A == 1),Y(A == 1),Z...

The issue here is that you have 3 parameters and 2 equations, so there might not exist an unique solution. However if there exis...

Hi Guys, I am trying to uses the function below function coords = distancePerBound(coords,L) hL = L/2; coords(...

2 Answers

0

Asked 7 months ago

subplot sections a figure windows in sections For example, subplot(3,2,1) Suggest that the figure space is going to be d...

Answered 1 year ago

You can use button with symbols + or -, and add functions like adding or subtracting as a feature. Something like this (very ...

b = [u,accumarray(ix,zz(:,1))./accumarray(ix,1)]; The second accumarray will be (ix,1) not (ix,2)

Because you have to do something like this on the command window: [K,T] = KTBC(n) KTBC is a function that take an input ...

You make a function for plotting the circle, something like this: * EDIT:* function plotcircle(x1,y1,r,c) % x1,y...

ss1 = ss(1:2); ss2 = ss(3:4); In matlab strings are vectors of type char. So you can use indexing.

h=11:-1:-12 for i = 1:length(h) beta=asind(cosd(Lat)*cosd(delta)*cosd(15*h(i))+sind(Lat)*sind(delta)) phi_s=asin...

t = 0:0.001:10; x = 0.2*cos(t) + cos(1.4*t) + 0.8*cos(5.2*t) + 0.02*randn(1, 10001); N = 7; % Number of divisions I =...

A = [4 20 35 22 10 49]; B = 1:numel(A); [~,C] = sort(A); B(C) = B; % Your vector

something like this: figure(1) Square = [0,0,2,2;0,2,2,0]; fill(Square(1,:),Square(2,:), [1 0 .7]) title('Square A...

This is because you have GradObj On but your function does not provide gradient vector. Try something like this: options...

You can use assignin('base','_variablename',variable) For more about assignin - http://www.mathworks.com/help/matlab/ref/assi...

There is one difference between the equation and your code (however that does not fixes the issue though). l=53; w=...

I think you need to play with the size of your figure i.e. using 'Position' property along with 'OuterPosition'. Like, I tried t...

If the assigned variables in your code are different than sortedWords, they wont show up in the workspace because they are only ...

You can delete the _Callback functions if you are not using it and that will not give any errors. However you should not delete ...

If you don't change the values for promat inside the function, Matlab will not be allocating a new memory for promat. As long a...

No, you can't using the default matlab static text. The verticalAlignment is disabled. However, this might something that you sh...

I have a small vector Rv (30x1) which need to be updated in every loop. Before going in the loop, I have initiated the vector as...

1 Answers

Asked 1 year ago

I am part of a university and use Matlab from university. I have been trying to access documentation related to compiler (2014b ...

Asked 5 months ago

I had been been using Matlab 2012b. I had few deployed application using this version which took significant time to load up. ...

2

I created a compiled application using Matlab 2014b. I found out that since MATLAB 2014a, the compiler includes a splash screen ...

I have a situation where I have to create a matrix and do some analysis on it. However the matrix size changes frequently. I tho...

I am trying to do some Monte Carlo Type simulations. In this, I have few choices which needs to be selected using weighted proba...

You can use fprintf - very nicely explained here with examples - http://www.mathworks.com/help/matlab/ref/fprintf.html

Answered 6 months ago

W(2:417,1) = W(2:417,3);

Load more