Réponse apportée
Round towards specific values in an array
This is one possible solution. If your vectors are very long though, this might be inefficient because it temporarily makes a bi...

plus de 15 ans il y a | 1

Réponse apportée
interp3 returning NaN due to machine precision at bounds
You could let it extrapolate outside the region: interp1(dataRange,data,points(8),[],'extrap')

plus de 15 ans il y a | 0

Réponse apportée
Optimization Problem
Are you trying to find the x that minimizes that expression as a function of those parameters a and b? If you really want to re...

plus de 15 ans il y a | 0

Réponse apportée
Data with NaN
If you wanted to keep a line connecting them: I = ~isnan(x) & ~isnan(y); plot(x(I),y(I))

plus de 15 ans il y a | 3

| A accepté

Réponse apportée
adapthisteq
The 'numtiles' argument in ADAPTHISTEQ refers to the number of tiles to break the entire image into, and not the actual pixel si...

plus de 15 ans il y a | 0

Réponse apportée
Problem in observibility and controlibility function ctrbf,obsvf
Just a suggestion, but when doing symbolic calculations using 's' as a transfer function variable, you might want to explicitly ...

plus de 15 ans il y a | 1

Réponse apportée
Problem in observibility and controlibility function ctrbf,obsvf
This difference is just from round-off errors. Notice the second element in Bbar is 1.1102e-016. That is why you get that very...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
Inverse function
You can do this with a lookup table block. Simulink -> Lookup Tables -> Lookup Table

plus de 15 ans il y a | 0

Réponse apportée
Fit Rigid Body to Points
Interesting problem. I would tackle it in the following way, but I'd be interested to know if someone has a better idea. 1. Re...

plus de 15 ans il y a | 1

Réponse apportée
Face a problem when doing keypressfcn for 'ENTER' key on keyboard
Try using 'return' instead of 'enter'

plus de 15 ans il y a | 2

| A accepté

Réponse apportée
Converting a String to an Array
If what you are really asking is "how do I turn a row vector into a rectangular matrix" then you can use RESHAPE. x = [3 5 ...

plus de 15 ans il y a | 2

| A accepté

Réponse apportée
skip a load error
You can use a try (catch) block. For example x = 5; try load('asdasdasd.mat') %I can't load this file catch dis...

plus de 15 ans il y a | 4

| A accepté

Réponse apportée
Symbolic Integration
Both answers are correct. d/dx[ (x+y)^2/2 ] = d/dx[ x^2/2 + x*y + y^2/2 ] = x + y d/dx[ x^2/2 + x*y ] = x + y The a...

plus de 15 ans il y a | 3

| A accepté

Réponse apportée
standard deviation in matlab
You probably meant to write (400-1) and not (40-1).

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
Passing array to a function
Whatever Freq is when you exit the function getFreq, it is not of a size compatible with the index vector x. For example, th...

plus de 15 ans il y a | 3

Réponse apportée
Why are strings in a cellarray not interpreted as strings?
mystrings(1) returns a cell array. mystrings{1} returns the actual contents of the cell array (in this case a string). So ...

plus de 15 ans il y a | 0

| A accepté