Answered
Unable to perform assignment because the size of the left side is 56-by-37 and the size of the right side is 37-by-56. Error in myMeanShiftSegmentation (line 21) subsampled(:, :, i) = I1;
Use a cell array to store the values : P.S- I have no experience with mean shikft algorithm subsampled=cell(1,n); for i=1:n ...

7 years ago | 0

Answered
How to pix the syntax error?
Read more about functions() function [TDOA, FDOA] = CAF(S1, S2,1500,1e6, 10e-4); % ^---^---...

7 years ago | 0

Answered
too many input arguments ode45
Everything seems to be correct assuming that you saved the function properly with the correct name. The right usage of the giv...

7 years ago | 0

| accepted

Answered
How to use a for loop to sum a random 12x12 matrix.
EDITED A = randi([10,10],[12,12]); total=0; for i=1:size(A,1) for j=1:size(A,2) total=total + A(i,j); end ...

7 years ago | 1

| accepted

Answered
how can i differentiate two equations with each each other ?
Yes becuase you are trying to differentiate a scalar >> theta theta = 27.4144 >> f f = 2.2692e+04 >>

7 years ago | 0

Answered
Why is rotate3d not added by default in spectrogram plots in 2018b?
https://www.mathworks.com/matlabcentral/answers/419036-what-happened-to-the-figure-toolbar-in-r2018b-why-is-it-an-axes-toolbar-h...

7 years ago | 0

Answered
r(u,v) = ucosvi + usinvj + vk for 1 ≤ u ≤ 2 and 0 ≤ v ≤ 4π.
Read about ezsurf()(usually fsurf is recommended) syms u v k=4; %some value assume(1<=u<=2) assumeAlso(0<=v<=4*pi) ezsurf...

7 years ago | 0

Answered
How do you do the following?
1) Define x using increment. 2) Just use a for loop. 3)Use plot(...). 4)Use fminbnd(...) by parametrizing the function.

7 years ago | 0

Answered
Please solve the following problems:
Define variable as syms w y .... and solve the equation using solve()

7 years ago | 0

Answered
Structure export to csv
struct2csv()

7 years ago | 0

| accepted

Answered
output of the text detection from command window to txt file?
Download cprintf and then write the command window output to a text file using dlmwrite/fprintf

7 years ago | 0

Answered
How do I make plot lines different colors?
https://www.mathworks.com/help/matlab/ref/linespec.html plot(x,y,'r') % r indicates red color see the link for more info

7 years ago | 0

| accepted

Answered
plot a vector with 3 axes
https://www.mathworks.com/help/matlab/ref/isosurface.html

7 years ago | 0

Answered
x ˙ = 3x − + 2 − y + I how to solve this equation in matlab and make a graph?
There are several ways to solve you can also use ode45 or dsolve. Is y a function of x?

7 years ago | 0

Answered
How do I fix my code when the index exceeds the number if array elements?
change drag(t) to drag

7 years ago | 0

Answered
Save a graph for Latex
https://www.mathworks.com/help/matlab/ref/saveas.html https://www.mathworks.com/help/matlab/ref/savefig.html

7 years ago | 0

Answered
Convert cell array to an array, when the size of the cells is different
[A{:}] % which is eqivalent to horzcat(A{:})

7 years ago | 0

Answered
Extracting the index numbers of greater than zero values of an array in different / separate sets MATLAB
Use logical indexing: idx=find(values>0) %gives linear indices values(values>0) %gives you all the values greater than zero

7 years ago | 0

Answered
How to create a random 10x10 matrix with values between -10 and 10
a = -10; b = 10; Z = (b-a).*rand(10) + a; command window: >> Z Z = Columns 1 through 7 -7.8888 -7.3805 -5....

7 years ago | 3

| accepted

Answered
Why am i getting the error 'Undefined function or variable 'Av_Daily_Temp'' on the command window when i try to run the function, loadForecast(date, Av_Daily_Temp, isHoliday) ? Below is the the code
Because you didn't define the input arguments while calling the function. P.S- I won't look through your hundred lines of codes...

7 years ago | 0

Answered
HISTOGRAM 2 COLOURS - positive numbers red, negative numbers blue
EDITED h=histogram(slopes(slopes>0)); h.FaceColor='red' hold on h1=histogram(slopes(slopes<0)); h1.FaceColor='blue'

7 years ago | 1

| accepted

Answered
How to repeat a calculation in all rows
max(muscles,[],2)

7 years ago | 0

| accepted

Answered
How to plot from array
X=10:20; Y = [12 24 36 48 60 72 84 96 108]; plot(X(1:numel(Y)),Y) Alternatively Y = [12 24 36 48 60 72 84 96 108]; X=linspa...

7 years ago | 0

Answered
How to merge two cells and extract the superlayed values?
a=[[cell1{:}] [cell2{:}]]; % cell1 containng names and the other values plot([cell2{:}]) xticks(1:numel([cell1{:}])) xtickla...

7 years ago | 0

| accepted

Answered
why error showing to line %*** Check input **** if nargin < 2 error('no bandwidth specified') end while running mean shift algorithm
Generally it happens becuase the input argument that you passed into the function is less than 2. P.S - I have no experience wi...

7 years ago | 0

Answered
データディクショナリにローカル変数を保存する方法
you can alternatively save the variables as mat file and invoke thmen using From file block which can be then passed on

7 years ago | 0

| accepted

Answered
Single coloumn if columns = 1
Q=sum(P,2)

7 years ago | 0

Answered
Recall workspace variable in a function
Define x y z before using it? Because matlab won't show that error if the variables are in workspace already.

7 years ago | 0

Answered
How to plot the number on top of 3D Bar Graphs?
https://www.mathworks.com/help/matlab/ref/text.html https://www.mathworks.com/help/matlab/ref/annotation.html

7 years ago | 0

| accepted

Load more