Solved


calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

11 years ago

Solved


Determine if a row vector has NaN
Determine if a row vector x has NaN

11 years ago

Solved


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

11 years ago

Solved


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

11 years ago

Solved


A quadrant matrix
Write a function called quadrants that takes as its input argument a scalar integer named n. The function returns Q, a 2n-by-2n ...

11 years ago

Solved


Variable_Addition
be able to add any variable to the number one

11 years ago

Answered
How to calculate a 2D rotation vector with PCA?
find the angle between the first column of PCA1 and the first column of PCA2 (hint: cos(angle(a,b))*norm(a)*norm(b)=a'*b) and bu...

11 years ago | 0

Answered
Implementing a sine wave with linearly changing frequency
someone deleted his own answer including my own comments to it so, just in case these are interesting to anybody else, I am repe...

11 years ago | 5

Answered
Implementing a sine wave with linearly changing frequency
the formula: sin( 2*pi*f(t)*t ) does not result in the desired sine wave with time-varying frequency. Rather the appropri...

11 years ago | 6

Answered
How to run a repeated-measures t-test in Matlab to determine whether you can reject the null hypothesis.
use <http://www.mathworks.com/help/stats/ttest2.html ttest2> for a two-sample t-test (the two conditions are from two different ...

11 years ago | 1

Answered
F-Test for difference between coefficients
help <http://www.mathworks.com/help/stats/generalizedlinearmodel.coeftest.html coefTest> and use a contrast H that compares t...

11 years ago | 3

| accepted

Answered
How to get around out of memory issue
If your end-goal is to actually compute that entire 80000 x 80000 matrix, and you do not have enough memory to keep that matrix,...

11 years ago | 0

| accepted

Answered
Keep GUI functions running when opening an uigetfile Dialog?
No, as far as I know uigetfile will create a modal window (see <http://www.mathworks.com/help/matlab/ref/figure-properties.html#...

11 years ago | 1

| accepted

Answered
Implementing Breadth first search using connectivity matriX
See <http://www.mathworks.com/help/matlab/ref/dmperm.html _help dmperm_> If I am interpreting correctly, something like the f...

11 years ago | 0

Answered
From inline to anonymous function
if you have the symbolic toolbox: g = matlabFunction(sprintf('[%s; %s]', dx1dt, dx2dt)); otherwise your best bet is proba...

11 years ago | 0

Answered
Sum two cells and write to a third cell
Probaby a loop is going to be fastest, e.g.: for n=1:numel(A) A{n}(:,1)=B{n}(:,1)+C{n}(:,1); end but if you reall...

11 years ago | 2

| accepted

Answered
Toggle button background color unable to change
I would first check if you are able to change the color of the togglebutton manually, e.g. h = uicontrol('style','togglebutt...

11 years ago | 0

Answered
Matlab GUI and slow execution
not much we can do without seeing the code, but as you suggest one possible reason for the slowing down could be if the number o...

11 years ago | 0

| accepted

Answered
Calling some MATLAB function with suppressed outputs
Unfortunatley there is not (as far as I know; see for example <http://www.mathworks.com/matlabcentral/newsreader/view_thread/156...

11 years ago | 0

| accepted

Answered
Hierarchical clustering with only merging neighbouring clusters
I would suggest to request the code from the authors (Thirion et al.? if so, you can start here <https://github.com/bthirion/fro...

11 years ago | 0

Answered
what is the fastest way to do many univariate regression? same Y against different x, one x at a time
Not terribly different in practice, but if you want you could compute all of those regressions simultaneously using a sparse blo...

11 years ago | 0

Solved


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

11 years ago

Solved


GJam 2015 Rd1B: Counter Culture
This Challenge is derived from <https://code.google.com/codejam/contest/8224486/dashboard#s=p0 GJam 2015 Rd 1B: Counter Culture>...

11 years ago

Solved


String math
You will be given a string that describes a simple math equation. Your job is to determine if the value of the equation is equa...

11 years ago

Solved


Repeat The Components of Matrix
Repeat The components of a matrix so that the size of the output matrix is double to input matrix and components are repeated ne...

11 years ago

Solved


Bruh
Return 'bruh'.

11 years ago

Answered
Matlab code problem (calculate eigenvalues and eigenvectors)
In your example the matrix A is not <https://en.wikipedia.org/wiki/Normal_matrix normal> (check that A*A'-A'*A is not zero), hen...

11 years ago | 0

Solved


Calculate square and cube of number
Calculate square and cube of number x

11 years ago

Solved


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

11 years ago

Solved


Don't Try, give up and return NaN.
This is another version of <http://www.mathworks.com/matlabcentral/cody/problems/3107-try-and-catch-simple-example problem 3107....

11 years ago

Load more