Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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

más de 8 años hace | 0

Respondida
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 ...

más de 8 años hace | 1

| aceptada

Respondida
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...

más de 8 años hace | 0

Respondida
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 ...

más de 8 años hace | 1

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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

más de 8 años hace | 1

Respondida
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...

más de 8 años hace | 1

| aceptada

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 1

| aceptada

Respondida
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, ... ...

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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 ...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
Concatenating matrix with itself x number of times
Hi, use the function repmat: repmat(t, x, 1) Titus

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 1

Respondida
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...

más de 8 años hace | 0

Respondida
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

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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 ...

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 1

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

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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 *...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 1

| aceptada

Cargar más