Réponse apportée
Matrix input and matrix variables in minimization of an objective function
Hi Hannaneh, you need to have one vector of variables, not a matrix. So * Your x0 should be ones(3*N,1), not ones(N,3) * ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
faster way to read formatted ascii
Hi, as an alternative to textscan, you can continue using the importer as you do but instead of hitting the import data click...

presque 11 ans il y a | 0

Réponse apportée
turbine and compressor maps
Hi, to get started I would recommend to use reshape to convert your vectors to matrices, something like linenoMatrix = r...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Opening multiple excelworksheets with stringnames from a cell
Hi Thomas, the loop is not bad, but assignin and eval are in this case, that's right. My suggestion would be to do something ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
use 'bernsteinMatrix' from MATLAB works in 2014(macos) and 2015(macos) not 2013(Win7)
Hi Konstantinos, in which "2013(Win7")? According to the documentation in R2015a it was added in R2013b. Could it be you are ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Indexing a cell, ignoring empty inputs?
Hi Thomas, yes it does. Do you really look for OECF in each string, or do you want to compare to OECF? For your example at le...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
Extract the value of a signal at t=X sec in Simulink
Hi, a simple way is using an enabled subsystem: * Feed the signal to the inport * Take the clock block, feed into "Compar...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
RK4 error for the code
Hi, the error tells you, that the first argument to call rk4 should be a function that can be called, so either the name as a...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
str2func and anonymous functions
Hi, the str2func does not work in this case, as you observed. But the documentation does not really suggest, that it should w...

presque 11 ans il y a | 0

Réponse apportée
how to connect MS Access database with matlab
Hi Reema, accessing databases works by using the functions from the <http://www.mathworks.com/products/database Database Tool...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Wie kann ich in den UnitDelay Block einen Initialwert angeben, der in meinem Modell vorher berechnet wird, also scalar measurement ist??
Hi Max, within the same model? "Da beißt sich die Katze in den Schwanz" ... ;-) You might setup a second model that comput...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How to write this program in MATLAB ? Can we convert JAVA code into MATLAB code?
Hi, take a look at the doc for "object oriented programming", or doc classdef Write for each of the Java classes a co...

environ 11 ans il y a | 0

Réponse apportée
Plotting the heat equation using the explicit method
Hi, if the bar is in the negative x as well, I would rewrite the loop entirely to be more like MATLAB style, something like ...

environ 11 ans il y a | 0

| A accepté

A résolu


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

environ 11 ans il y a

Réponse apportée
Plotting the heat equation using the explicit method
Hi, when you set the value for u, you need to replace if x>0 by if x(j)>0 Then you will see, that your u look...

environ 11 ans il y a | 0

Réponse apportée
Running mcc from windows cmd
Hi, usually you should be able to call the mcc directly from CMD without using "matlab -r". Did you try? Maybe you need to se...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
Why does appear in a 3D mesh plot lines that should not be there?
Hi, might be a problem with your OpenGl driver ... You could try either set(gcf, 'Renderer', 'zbuffer') or to switch ...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
How do I plot three columns of data (x, y, dependent_variable)?
Hi, in your case usually a 3D view is the natural one. Alternatives would be to show the third column as the color (using sca...

environ 11 ans il y a | 1

Réponse apportée
Removing elements from a cell array
Hi, something like this? intpop{4,1}(2,:) = [intpop{4,1}(2, setdiff(1:size(intpop{4,1},2), 3)) {[]}] Titus

environ 11 ans il y a | 0

| A accepté

Réponse apportée
Saving some part of a cell array
Hi, you should be able to index into data without destroying data or doing copies: dataTruncated = data(1:8); save some...

environ 11 ans il y a | 1

| A accepté

Réponse apportée
Boolean matrix in mex file
Hi Alessandro, use mxGetLogicals instead of mxGetPr ... Titus

environ 11 ans il y a | 0

| A accepté

Réponse apportée
'save as' command
Hi Valentino, use uiputfile for this task, something like [fName, pName] = uiputfile('*.mat'); if fName==0 % user ...

environ 11 ans il y a | 2

| A accepté

Réponse apportée
No Java Builder package working
Hi, just a guess: you used Java JDK 1.8.x? You need to use JDK 1.7.x ... Titus

environ 11 ans il y a | 1

| A accepté

Réponse apportée
How to work with interpolation function?
Hi, in your file B67 is equal to B68. Remove one of the lines. Titus

environ 11 ans il y a | 0

| A accepté

Réponse apportée
Fibonacci sequence, slightly different.
Hi, I don't see what this has to do with Fibonacci though ;-). But you don't need the loop, just do something like seq =...

environ 11 ans il y a | 1

Réponse apportée
link x-axis from one figure with y-axis from another figure
Hi, using linkaxes (or the more general linkprop) this will not work, because only the same property can be linked. What shou...

environ 11 ans il y a | 0

Réponse apportée
Undefined function 'wlgrid' for input arguments of type 'char'.
googling "wlgrid MATLAB" points you to http://content.oss.deltares.nl/delft3d/manuals/Delft3D-MATLAB_User_Manual.pdf. You will n...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
i have a recurrence function L(x). I have L1(x), L2(x).... L4(x) as can you see on the image followed. how can I write a matlab program to generate it's different polynoms till L50(x) for example.
Hi Constantin, polynomials are "encoded" as vectors of the coefficients. So you would have (shifting the index by 1): L{...

environ 11 ans il y a | 0

Réponse apportée
Suppose, v(x) is a user-defined function. How, to get v(-x) which is going to be used in the same code?
Hi, sorry, I don't understand the question. If you have the function, why don't you simply call v(-x)? Or are you looking ...

environ 11 ans il y a | 0

Réponse apportée
What does this code compute?
It set's all entries in mask, where inside is true, to one. I guess mask(inside) = 1; should do the same in fact. Tit...

environ 11 ans il y a | 0

| A accepté

Charger plus