回答済み
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

| 採用済み

さらに読み込む