42.204 total contributions since 2011

I do not do free private consulting. If you want to bring my attention to something, send a link to the MATLAB Answers location.

Answered

How can I generate a random number between a specific range?

rand(rows, columns) * 50 + 50 csvwrite

How can I generate a random number between a specific range?

rand(rows, columns) * 50 + 50 csvwrite

circa 4 ore ago | 0

Answered

How to integrate with SAP ERP

https://blogs.sap.com/2018/02/13/integration-of-matlab-compiler-runtime-in-sap-hana-extended-application-services-advanced-model...

How to integrate with SAP ERP

https://blogs.sap.com/2018/02/13/integration-of-matlab-compiler-runtime-in-sap-hana-extended-application-services-advanced-model...

circa 4 ore ago | 0

Answered

When running code it returns >> pp01 Error using plot Error in color/linetype argument. Error in pp01 (line 33) plot(t(:),z(:,1),'W',t(:),z(:,2),'F')

'W' is valid as a code for White but 'F' is not a color abbreviation and is not a marker shape code. Valid codes are * b: blu...

When running code it returns >> pp01 Error using plot Error in color/linetype argument. Error in pp01 (line 33) plot(t(:),z(:,1),'W',t(:),z(:,2),'F')

'W' is valid as a code for White but 'F' is not a color abbreviation and is not a marker shape code. Valid codes are * b: blu...

circa 5 ore ago | 0

Answered

Unexpected error: A timeout occurred during the write operation..

Increase the serial output buffer size and also send less in one fprintf. Renegotiate the protocol with the other side so th...

Unexpected error: A timeout occurred during the write operation..

Increase the serial output buffer size and also send less in one fprintf. Renegotiate the protocol with the other side so th...

circa 6 ore ago | 0

| accepted

Answered

is WLAN toolbox available in MATLAB 2018 version?

R2016a and later. Note that it is not available for Student licences.

is WLAN toolbox available in MATLAB 2018 version?

R2016a and later. Note that it is not available for Student licences.

circa 6 ore ago | 0

Answered

why getpts doesn't give the correct points?

imshow() by default sets YDir reverse so that the "top" of the array (lowest row number) appears at the top of the screen (which...

why getpts doesn't give the correct points?

imshow() by default sets YDir reverse so that the "top" of the array (lowest row number) appears at the top of the screen (which...

circa 8 ore ago | 0

Answered

How can I install mosek in matlab for free?

https://www.mosek.com/products/academic-licenses/ Personal academic license for mosek are free.

How can I install mosek in matlab for free?

https://www.mosek.com/products/academic-licenses/ Personal academic license for mosek are free.

circa 9 ore ago | 0

Answered

how do I fit a double exponential equation? there are two double exponential waveforms and I need to fit the equation into each waveform

You can use cftool with a custom equation. Be warned that sum of exponential are notoriously difficult to fit. If your initia...

how do I fit a double exponential equation? there are two double exponential waveforms and I need to fit the equation into each waveform

You can use cftool with a custom equation. Be warned that sum of exponential are notoriously difficult to fit. If your initia...

circa 11 ore ago | 0

| accepted

Answered

Generated figure but no plot

After your for loop psi is a scalar.

Generated figure but no plot

After your for loop psi is a scalar.

circa 11 ore ago | 0

| accepted

Answered

remove rows with duplicates

need_to_delete = [false; any(ismember(YourArray(2:end,:), YourArray(1,:)),2)]; YourArray(need_to_delete, :) = [];

remove rows with duplicates

need_to_delete = [false; any(ismember(YourArray(2:end,:), YourArray(1,:)),2)]; YourArray(need_to_delete, :) = [];

circa 14 ore ago | 0

Answered

Unable to save file for Quiver

You can never imwrite() a graphics object, including not even if it is an image. Some kinds of graphics objects (such as images...

Unable to save file for Quiver

You can never imwrite() a graphics object, including not even if it is an image. Some kinds of graphics objects (such as images...

circa 16 ore ago | 0

Answered

Error using the igrfmagn function (collecting the output)

time = 100; [mag_field_vector, hor_intensity, declinatioon, inclination, total_intensity] = deal(cell(size(time))); for i = 1:...

Error using the igrfmagn function (collecting the output)

time = 100; [mag_field_vector, hor_intensity, declinatioon, inclination, total_intensity] = deal(cell(size(time))); for i = 1:...

circa 16 ore ago | 0

| accepted

Answered

Writing equations in a matrix form

For any one particular scalar k and scalar m, you can express sum_{j} sum_{i} c(i,j,k,m) in range 0 to 1 as a linear constraint....

Writing equations in a matrix form

For any one particular scalar k and scalar m, you can express sum_{j} sum_{i} c(i,j,k,m) in range 0 to 1 as a linear constraint....

circa 16 ore ago | 0

| accepted

Answered

How to solve the following errors?

You refer to extplottingIter . We do not have enough information to know whether that is a function name or the name of a variab...

How to solve the following errors?

You refer to extplottingIter . We do not have enough information to know whether that is a function name or the name of a variab...

circa 17 ore ago | 0

Answered

Does audioread not return a vector?

No, often audioread() does not return a vector. audioread() normally returns a 2D array with one column per channel. Note: you ...

Does audioread not return a vector?

No, often audioread() does not return a vector. audioread() normally returns a 2D array with one column per channel. Note: you ...

circa 18 ore ago | 0

Answered

Best way to import millions of rows of data using ODBC to connect to AS400?

https://support.office.com/en-us/article/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c Microsoft Access maximum ta...

Best way to import millions of rows of data using ODBC to connect to AS400?

https://support.office.com/en-us/article/access-specifications-0cf3c66f-9cf2-4e32-9568-98c1025bb47c Microsoft Access maximum ta...

circa 18 ore ago | 0

Answered

Simple Matrix Manipulation Help

There is no solution for that. solve(A*X == B) Look at entry #11 in B, where you have a 0 where the sequence would otherwise p...

Simple Matrix Manipulation Help

There is no solution for that. solve(A*X == B) Look at entry #11 in B, where you have a 0 where the sequence would otherwise p...

circa 19 ore ago | 0

Answered

separate table data in to sub tables

G = findgroups(YourTable.name); output = splitapply(@(varargin) {table(varargin{:}, 'VariableNames', YourTable.Properties.Varia...

separate table data in to sub tables

G = findgroups(YourTable.name); output = splitapply(@(varargin) {table(varargin{:}, 'VariableNames', YourTable.Properties.Varia...

circa 19 ore ago | 0

Answered

Format of mat file in Version R2019a

The documentation for MAT 1.0 and MAT 2.0 files is lost to history as far as I can tell. The documentation for MAT 3.0 and MAT ...

Format of mat file in Version R2019a

The documentation for MAT 1.0 and MAT 2.0 files is lost to history as far as I can tell. The documentation for MAT 3.0 and MAT ...

circa 19 ore ago | 0

Answered

What's the difference between Matlab runtime and Matlab(R) Compiler Runtime

The 7.14 software is for applications compiled with r2010b

What's the difference between Matlab runtime and Matlab(R) Compiler Runtime

The 7.14 software is for applications compiled with r2010b

circa 21 ore ago | 0

Answered

How can I generate reciprocal of a matrix

I suspect that you want inv(A) but possibly you want 1./A In most cases inv() is better avoided in favor of using the \ opera...

How can I generate reciprocal of a matrix

I suspect that you want inv(A) but possibly you want 1./A In most cases inv() is better avoided in favor of using the \ opera...

circa 22 ore ago | 0

Answered

how i can save the value of two signals when they are equal

N = 14; a = zeros(1, N); b = 1; for K = 1 : length(signal_1) if signal_1(K) == signal_2(K) a(b) = signal_1(K); ...

how i can save the value of two signals when they are equal

N = 14; a = zeros(1, N); b = 1; for K = 1 : length(signal_1) if signal_1(K) == signal_2(K) a(b) = signal_1(K); ...

1 giorno ago | 1

Answered

License Manager Error -9

Yes. It is permitted to run MATLAB dual-booted on the same machine, as long as the hardware identification information matches. ...

License Manager Error -9

Yes. It is permitted to run MATLAB dual-booted on the same machine, as long as the hardware identification information matches. ...

1 giorno ago | 1

| accepted

Answered

STRING ARRAY TO NUMERIC VALUES ( I want to change the array's type to plot the graph, even though I use double function or str2num that doesn't change anything and it still string)

new_frequency(1:rowRPM(1,1)) = str2double(frequency(1:rowRPM(1,1))); In the special case where you are converting all of the en...

STRING ARRAY TO NUMERIC VALUES ( I want to change the array's type to plot the graph, even though I use double function or str2num that doesn't change anything and it still string)

new_frequency(1:rowRPM(1,1)) = str2double(frequency(1:rowRPM(1,1))); In the special case where you are converting all of the en...

1 giorno ago | 1

Answered

How to make a matrix with negative indexes?

Modify https://www.mathworks.com/matlabcentral/fileexchange/33301-zero-based-indexable-arrays-oop-exercise Another approach is...

How to make a matrix with negative indexes?

Modify https://www.mathworks.com/matlabcentral/fileexchange/33301-zero-based-indexable-arrays-oop-exercise Another approach is...

1 giorno ago | 0

Answered

How I can repeatedly divide a binary image ?

Code for repeatedly dividing was provided at https://www.mathworks.com/matlabcentral/answers/456856-how-can-i-loop-over-a-binary...

How I can repeatedly divide a binary image ?

Code for repeatedly dividing was provided at https://www.mathworks.com/matlabcentral/answers/456856-how-can-i-loop-over-a-binary...

1 giorno ago | 0

Answered

Adding multiple fields and values to structure array

Provided you are setting all of the fields of data(k), then you can use data(k) = struct('PairNum', pairNum, 'level', level, 't...

Adding multiple fields and values to structure array

Provided you are setting all of the fields of data(k), then you can use data(k) = struct('PairNum', pairNum, 'level', level, 't...

1 giorno ago | 1

| accepted

Answered

How does Matrix(3002:2001:1999998)=0.4 works?

It is due to linear indexing. Variables can be indexed by a single number which is the number of elements from the beginning in ...

How does Matrix(3002:2001:1999998)=0.4 works?

It is due to linear indexing. Variables can be indexed by a single number which is the number of elements from the beginning in ...

1 giorno ago | 0

Answered

How can I append the same variables on mat file?

After you have created m = matfile() then new_row_of_values = something appropriate; s = size(m, 'my_variables'); m.my_vari...

How can I append the same variables on mat file?

After you have created m = matfile() then new_row_of_values = something appropriate; s = size(m, 'my_variables'); m.my_vari...

1 giorno ago | 1