Réponse apportée
Error usind cd and fullfile
Hi, since Foldernames is a cell array you need to use {} for access to elements. Replace cd(fullfile('E:\Dropbox (LMD)\N...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
how do i use mex compiler?
Hi, the error message tells you the problem: the setup of the Microsoft SDK was either not done or not successful. Titus

presque 9 ans il y a | 0

Réponse apportée
How can I use strcmp (or something else) to compare to multiple strings at once?
Hi, apart from Walter's method there are two additional: # Use regexp (unfortunately here I can't help, I've never really ...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
How is it possible that a fitobject can used as an input for the plot function?
That's because the fit object has a method called plot: x = fit([1 2 3]', [4 5 6.5]', 'linear') x = Linear interpol...

presque 9 ans il y a | 0

Réponse apportée
Why won't my code run? Matlab just says its busy when i run it?
Hi, I did not try the code, but I would strongly recommend to have some limit on the number of iterations, something like ...

presque 9 ans il y a | 1

Réponse apportée
Trouble with Enable subsystem.
Hi Prakash, no, the enable system does not compute when the enable signal is not positive. But the outport hold the last comp...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
what is the simplest way to add two vectors if size is unknown?
Hi, if you know that v is a row: x = v + u(:)'; Titus

presque 9 ans il y a | 1

Réponse apportée
Matlab Java Builder Error - javac
Hi, the builder tries to execute the following call: "C:\Program Files\Java\jdk1.8.0_60\bin\bin\javac" ... I guess yo...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
Does set_param have a numerical accuracy limit? If so, what can I do to solve the problem?
Dear Prof. Beucher, it's not a bug in set_param but the way it's used, e.g. set_param('DynSystem/TF1','Numerator',num2st...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Can anyone tell me the syntax to create a new variable in each iteration of for loop
Hi, I strongly recommend to use cell arrays instead of creating variables that way: u_Q1_H = cell(1, 4); v_Q1_H = cel...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
How do I declare a variable non-automatically on Matlab?
Hi Ricardo, you can use struct and repmat to initialize your structure: B = repmat( struct( ... 'obs', 0, ... ...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
If loop using cell arrays
Hi, I'm not 100% sure I understand what you want to do, but I guess it should be like this for i=1:length(A) if all...

presque 9 ans il y a | 0

Réponse apportée
GUI can not run well in MCR
Hi, it would be good to find out what's failing. Open a console window (Windows Start-> CMD). Navigate to the folder where th...

presque 9 ans il y a | 0

Réponse apportée
How can I fix error in fzero (line 241)
Hi, fzero works for scalar valued functions. Looking at your function I guess it's not scalar valued (i.e., if you call your ...

presque 9 ans il y a | 0

Réponse apportée
How to connect function blocks in Simulink "wirelessly"?
Hi, you can use From/Goto blocks to do this. Generally speaking wires are preferred, but sometimes using From/Goto helps to m...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Concatenating matrix with itself x number of times
Hi, use the function repmat: repmat(t, x, 1) Titus

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Clear function works in command window but not in script file
You can either use clear as function as you did, or use string concatenation. Since you need to use evalin anyway, string concat...

presque 9 ans il y a | 0

Réponse apportée
Using 'union' function in a loop over fieldnames
Hi, what do you mean by "not working as expected". Does it throw an error? Wrong result? Nothing happens? One thing that y...

presque 9 ans il y a | 1

Réponse apportée
Database Toolbox Not loading all of the tables
Hi, are you using SQL Server? And configured via ODBC database sources? Often the default database is not specified or not co...

presque 9 ans il y a | 0

Réponse apportée
Applying a negative to the function to find the maximum
Hi, your minus should span the entire function, i.e. f = @(x) -(p1*x^4 + p2*x^3 + p3*x^2 + p4*x + p5); Titus

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How to convert C++ code into Matlab. How to write the below given part of code into matlab
Hi Vandana, that should be straight forward: function y = logistic(x) y = zeros(size(x)); y(x>100) = 1.0; idx = x>=-1...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to concatenate argument lists in nested factory functions?
Hi, I'm not 100% sure about what you try to achieve, but solely looking on the indexing, I think it should look more like ...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Why does it takes two calls to rng(seed) to see that the seed was updated?
Hi, no, there is a misunderstanding: the call s=rng(100) does two things, namely, setting the seed to 100 and returning the c...

presque 9 ans il y a | 1

Réponse apportée
how to solve y[n]=a0*x[n]-a1*x[n-1] in matlab?
Hi, use the function filter: doc filter Titus

presque 9 ans il y a | 0

Réponse apportée
not enough input arguments
Hi Puneeth, please format the code using the code button. I guess, line 6 is B_encrypted=enc_gf*B; which would mea...

presque 9 ans il y a | 0

Réponse apportée
Large data mex file crashes generating 2e6 x 100 matrix
Hi, another thought: I'm not convinced that using a mex file will help you save memory. If you read the matrix S from your fi...

presque 9 ans il y a | 0

Réponse apportée
Large data mex file crashes generating 2e6 x 100 matrix
Hi, I'm not sure where the crash comes from. But what I think is strange is the size of variable line. Why is it N, i.e., A *...

presque 9 ans il y a | 0

Réponse apportée
how to average hourly data set.
Hi, I admit I have no idea where the 180*360 comes from in your "final dimension". But to compute the mean value of each bloc...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Can't find the embedded function in simulink R2015a
Hi Solene, the block is now simply called "MATLAB Function" instead of Embedded MATLAB Function. Titus

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Dot product of matrix with scalar
Hi, multiplying each row with a vector is nothing else but the matrix vector multiplication: B*n' (n' since your n is...

presque 9 ans il y a | 1

| A accepté

Charger plus