답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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

10년 초과 전 | 0

답변 있음
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 ...

10년 초과 전 | 1

| 수락됨

답변 있음
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...

10년 초과 전 | 0

답변 있음
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 ...

10년 초과 전 | 1

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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

10년 초과 전 | 1

답변 있음
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...

10년 초과 전 | 1

| 수락됨

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 1

| 수락됨

답변 있음
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, ... ...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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 ...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

| 수락됨

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

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 1

답변 있음
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...

10년 초과 전 | 0

답변 있음
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

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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 ...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 1

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

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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 *...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 1

| 수락됨

더 보기