A répondu
Timing multiple Matlab functions
Hi, timing single calls within a program using tic/toc won't work, the resolution will simply be too coarse. What are you ...

environ 8 ans il y a | 1

| A accepté

A répondu
how to find max of 1000 values which are rows,i wrote a code it showed just one value and index that is not the max
Hi Shina, what exactly is the question: you think val is not the maximum of y? I don't see how this can happen ... Or are you...

environ 8 ans il y a | 0

A répondu
how to use datefind function?
Hi, use which datefind to find the file datefind.m in the finance toolbox. Copy it to your folder and name it "mydate...

environ 8 ans il y a | 0

| A accepté

A répondu
textscan string reading data as string
Hi, you need to tell textscan, that a space (" ") doesn't split strings. Add this to the call of textscan: C = textscan(...

environ 8 ans il y a | 1

| A accepté

A répondu
how to interface arduino uno with simulink?
Hi, for the first call you need to specify model and port, something like a = arduino('nano', 'COM3'); The informatio...

environ 8 ans il y a | 0

A répondu
How to Create array with repeating values of another array
Hi David, use repmat and linear indexing: x = [1 2 3 4 5]; % repeat two times: xx = repmat(x, 2, 1); % and access all...

environ 8 ans il y a | 0

A répondu
how to define a while statement that when the variable equals a numerical value, ends the code?
Hi, I understand the "get's value" is meant as "being not empty" ...? A = []; while isempty(A) % do something, ...

plus de 8 ans il y a | 0

A répondu
Plotting selective Excel Data in Matlab
Hi, I'm not sure where the problem with the title is, because calling title(filename(1:end-4)) should work. Regar...

plus de 8 ans il y a | 0

A répondu
Signal generation using for loop
Hi, what about this: x = [-2 -2 -1 -1 0 0 1 1 2]; y = [ 0 -1 0 1 1 2 2 1 0]; plot(x,y) Titus

plus de 8 ans il y a | 0

A répondu
Using Derivates in simulink
Hi Henry, the derivative block is doing what its name says, namely estimating the derivative of the input signal. I don't und...

plus de 8 ans il y a | 0

A répondu
Additional (configuration) Files in compiled standalone application
Hi, I would suggest the following: * Add the .xlsx to the compiled app * When the application starts and wants to read th...

plus de 8 ans il y a | 0

A répondu
how to plot the time series data with dates showing in x axis
Hi Jessie, you need to set those properties as you want them to be before calling datetick: t = datenum(1990, 1, 1):25:d...

plus de 8 ans il y a | 1

A répondu
'...must return a column vector' errors when using ODE45
Keelan, I think there is a conceptual misunderstanding of what your myfun should do: it looks as if your 300 is related to 30...

plus de 8 ans il y a | 0

| A accepté

A répondu
what is fixed-point in a simulink model and how to do it?
Hi, fixed point means not using the usual double precision variables but using integers (with a scaling and bias). A simple e...

plus de 8 ans il y a | 0

| A accepté

A répondu
Convert string to a cell, array or matrix
Hi Alfonso, first of all, you might consider using the variable "NUM", since it already contains the numbers as double variab...

plus de 8 ans il y a | 0

| A accepté

A répondu
Convert string to a cell, array or matrix
What about this one: doc str2num Titus

plus de 8 ans il y a | 0

A répondu
How to load data from other directory?
Hi, you simply need to remove the / at the beginning: dir ..\temp dir ..\..\anotherFolder\anotherSubfolder Note: r...

plus de 8 ans il y a | 1

A répondu
How to import data from external file to Matlab when a format repeats N times inside the file?
Hi, you can use textscan for this task: % open the file fid = fopen('yourfile.txt', 'rt'); % read the first head...

plus de 8 ans il y a | 1

| A accepté

A répondu
Different results in different computers when using the function "eig" to obtain eigenvectors of a matrix
Hi Zhe, keep in mind, that eig quite often sorts the eigenvalues but it does not promise to do so. So having a different orde...

plus de 8 ans il y a | 0

| A accepté

A répondu
Confused about Static class methods versus normal functions, and their speed
Hi Jeroen, here the MATLAB version used really make a difference: the new engine in R2015b performs much better. On my machin...

plus de 8 ans il y a | 1

| A accepté

A répondu
matlab engine giving wrong result when called in a function in Cpp file
Hi, first of all, your memcpy copies just 4 or 8 bytes but not the array: memcpy((void *)mxGetPr(T), (void *)double_arra...

plus de 8 ans il y a | 0

A répondu
Parallel computing on a cluster
Hi Nicola, first of all you will need to make sure you really use the cluster (and not your local machine). When you click on...

plus de 8 ans il y a | 0

| A accepté

A répondu
R2015b: Multiple sessions
Hi Kent, yes, that should still be possible. Has your license type changed? E.g. from an individual user license to a concurr...

plus de 8 ans il y a | 0

A répondu
why eigenvalue of 3x3 matrix is showing complex value when its a22 element was changed from 180 to 179.99?
Hi, as Torsten commented, the eigenvalues are the roots of the characteristic polynomial. If you have e.g. a quadratic polyno...

plus de 8 ans il y a | 0

A répondu
How to apply/check changes in a Simulink Mask via callback?
Hi Bjoern, when the user presses enter after editing the field, the MaskCallback is executed. This is the callback in which y...

plus de 8 ans il y a | 0

A répondu
How can an object array be extented by itself?
Hi, interesting observation. I would explain as follows: the handle property means, that we use references to objects instead...

plus de 8 ans il y a | 0

| A accepté

A répondu
Does tic,toc influence the performance of a simulink model?
Hi Martin, no, tic/toc has no influence on performance. Titus

plus de 8 ans il y a | 0

| A accepté

A répondu
Save and restore state for a deployed application
Hi, your app can load and save data when deployed. It's only that there is no current folder, or the current folder may be so...

plus de 8 ans il y a | 1

| A accepté

A répondu
What does this error mean?
Hi, this means, that using eye(4) is not valid for indexing (which is true, since it contains zeros). This implies, that you ...

plus de 8 ans il y a | 0

| A accepté

A répondu
how can i replce numbers at the end of rows and coloumns in same metrix?
Hi, replacing is a question of indexing. Try A(3:4, 3:4) and you should see a 2x2 Matrix. Replace this by any other 2...

plus de 8 ans il y a | 0

Charger plus