Réponse apportée
How to do monthly average in a Table?
If you have the Statistics and MAchine Learning Toolbox, this can be done quite easily. For simplicity I will assume your Table ...

plus de 10 ans il y a | 1

Réponse apportée
CreditScoreCard: Where can I get a copy of Refaat 2011 dataset?
If you have version 2014b or later (and the Financial Toolbox), just type: load CreditCardData If you have an older vers...

plus de 10 ans il y a | 0

Réponse apportée
How to determine sign change in a matrix for each coulmn separatly
If you find the logical condition of the locations in b0 where the value is greater than or equal to zero, you can find the loca...

plus de 10 ans il y a | 0

Réponse apportée
Multiple Comet Plots in GUI
Consider instead using animatedline. <http://www.mathworks.com/help/releases/R2015a/matlab/ref/animatedline.html#namevaluepai...

plus de 10 ans il y a | 0

Réponse apportée
Ttest2 on 2 matrices - does it operate on columns sequentially?
You are correct. The columns of matrix1 are compared with the corresponding columns of matrix2. A value of 1 is indicative of a ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
import file into the workspace
Navigate to the appropriate directory -> Choose the file -> Right Click -> Select 'Import Data ...'

plus de 10 ans il y a | 0

Réponse apportée
Comment my function in order to get a decent title in the documentation
When publishing a function (just like with a script) the file is run, however with a function you require inputs. If you select ...

plus de 10 ans il y a | 3

| A accepté

Réponse apportée
Using isinf and isnan in the same command line?
f = @(a) std(a(~isinf(a) & ~isnan(a))); % f = @(x) std(a(~isinf(a)),'omitnan'); std_sigma1outs=cellfun(f,sigma1outs); ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Chi Squared Hypothesis 2 Tailed Test
Yes, the syntax you are using is testing both the upper and lower tails using the values you specified (0.01/2 and 1-0.01/2). S...

plus de 10 ans il y a | 0

Réponse apportée
Best graphics card for GPU computing
The Best GPU which you can use with MATLAB is going to be the Nvidia Tesla K80 meant for server systems. It runs around $5,000 U...

plus de 10 ans il y a | 2

Réponse apportée
Will converting the difference between 2 datenums to seconds contain leap seconds or not?
datenum does not handle leap seconds. datetime variables on the other hand can handle this (requires you have 2014b or later) pr...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How to insert pre-written functions into GUI
All that matters is that your pre-written function is on the <http://www.mathworks.com/help/matlab/matlab_env/what-is-the-matlab...

plus de 10 ans il y a | 0

Réponse apportée
fzero not working (thanks in advance for help)
Your objective function can only take one input argument, so the idea of the function handle is to make an anonymous function: ...

plus de 10 ans il y a | 0

Réponse apportée
How to force the intercept of a regression line to zero?
There are 2 main ways you can do this: dlm = fitlm(X,y,'Intercept',false); or using Wilkinson notation: dlm = fitlm...

plus de 10 ans il y a | 8

| A accepté

Réponse apportée
see, i have this error in my code saying: ??? Attempted to access x(0); index must be a positive integer or logical. Error in ==> abc at 14 x(i)=mod(g^x(i-1), p);
You start the loop at _i=1_, but then try and index _x(i-1)_, which is the same as _x(0)_. MATLAB starts indexes at 1 (Mathemati...

plus de 10 ans il y a | 1

| A accepté

A résolu


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

plus de 10 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 10 ans il y a

A résolu


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

plus de 10 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

plus de 10 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus de 10 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 10 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 10 ans il y a

Réponse apportée
How to export headers from uitable to excel sheet
Well the column names are stored in the 'ColumnName' of the uitable. data = [get(handles.uitable,'ColumnName');get(handles....

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
using the Xlsread functon
The issue is that _txt_ is a cell array which contains char-arrays. So you need to use curly brackets to extract the character a...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
I am connecting the database to matlab and compairing the z in matlab with the actual values in database
Likely this is because you are transposing the result of num2str(z) Notice the error shows: sql=['select id from d...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Pushbutton function to plot
The global solution is not the recommended one as this can cause problems with debugging. What you would want to do is have t...

plus de 10 ans il y a | 0

Réponse apportée
waitbar within a while loop
Right from the documentation <http://www.mathworks.com/help/releases/R2015a/matlab/ref/waitbar.html waitbar> : h = wai...

plus de 10 ans il y a | 0

Réponse apportée
Why am I getting Subscript indices must either be real positive integers or logicals?
I can see a few error in the line: correlationOutput = normxcorr2(mode(:,:A), Image(:,:, channelToCorrelate)) 1. The synt...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
"week.m" file disapeared
Firstly, _week_ is indeed a function which is included in base MATLAB for versions 2014b and later. It is meant to operate on a ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
It should not a error?
The function name is _xlabel(...)_ and not _Xlabel(...)_, MATLAB is case sensitive.

plus de 10 ans il y a | 0

| A accepté

Charger plus