Answered

In the Symbolic toolbox,how to get the results like in the old version

Seems like the same answer but presented in different form. The new version factorizes the result for example for int(x-x^2) ...

In the Symbolic toolbox,how to get the results like in the old version

Seems like the same answer but presented in different form. The new version factorizes the result for example for int(x-x^2) ...

15 days ago | 0

Answered

Unable to find Perl executable.

Acording to this anwer, matlab uses $SHELL to execute shell command. Most likely your SHELL env var is /usr/bin/fish. Check from...

Unable to find Perl executable.

Acording to this anwer, matlab uses $SHELL to execute shell command. Most likely your SHELL env var is /usr/bin/fish. Check from...

15 days ago | 0

Answered

SLP optimization yields "Error Z must be at least a 2x2 matrix"

Your X is a 100x100 matrix, Y is also a 100x100 matrix. But your G is a 1x100 vector. The error is about your G (referred as Z)....

SLP optimization yields "Error Z must be at least a 2x2 matrix"

Your X is a 100x100 matrix, Y is also a 100x100 matrix. But your G is a 1x100 vector. The error is about your G (referred as Z)....

16 days ago | 0

| accepted

Answered

getting different results with excel data

Without a sample file, it is difficult to investigate the problem for you. You might need to do this yourself: read the data fr...

getting different results with excel data

Without a sample file, it is difficult to investigate the problem for you. You might need to do this yourself: read the data fr...

16 days ago | 0

Answered

while executing this code in MATLAB iam getting an error like visualizeBoundary requiers more input arguments?

How did you call this function? It looks like this function needs: X: a nx2 matrix y: not sure how it is used in plotData. Mo...

while executing this code in MATLAB iam getting an error like visualizeBoundary requiers more input arguments?

How did you call this function? It looks like this function needs: X: a nx2 matrix y: not sure how it is used in plotData. Mo...

16 days ago | 0

Answered

Create table in a for loop with text

Try this: files = dir('*.csv'); B = {}; for i = 1:length(files) csv = readtable(files(i).name, 'Range', 'A1:I8'); % Doub...

Create table in a for loop with text

Try this: files = dir('*.csv'); B = {}; for i = 1:length(files) csv = readtable(files(i).name, 'Range', 'A1:I8'); % Doub...

16 days ago | 1

Answered

how can i convert detected grayscale image object back into rgb form?

How about changing the red chili area of the last image to alpha = 0 (so it is completely transparent). Then overlay on top of t...

how can i convert detected grayscale image object back into rgb form?

How about changing the red chili area of the last image to alpha = 0 (so it is completely transparent). Then overlay on top of t...

16 days ago | 0

Answered

Iterating over Columns/Rows (no index)

If the array is a row vector, then it works a = [1 2 3] for i = a disp(i) end

Iterating over Columns/Rows (no index)

If the array is a row vector, then it works a = [1 2 3] for i = a disp(i) end

16 days ago | 0

Answered

how ca I install MATLAB on windows 7, 32 bit ?

Did you check this? Most likely you will need to use an old version of matlab.

how ca I install MATLAB on windows 7, 32 bit ?

Did you check this? Most likely you will need to use an old version of matlab.

17 days ago | 0

Answered

I am facing the issue "Error: State: failed due to an unexpected error (MATLAB:undefinedVarOrClass)" while using Polyspace R2019A

You are using Polyspace to analyze your code? Can you code run inside matlab successfully first? Seems like there might be unde...

I am facing the issue "Error: State: failed due to an unexpected error (MATLAB:undefinedVarOrClass)" while using Polyspace R2019A

You are using Polyspace to analyze your code? Can you code run inside matlab successfully first? Seems like there might be unde...

17 days ago | 0

Answered

How to transfer Big Data from Python Dict to Matlab

In python, can you save your Big Data into a CSV file or json file? matlab can read CSV file and json file.

How to transfer Big Data from Python Dict to Matlab

In python, can you save your Big Data into a CSV file or json file? matlab can read CSV file and json file.

18 days ago | 0

Answered

How to Convert Matlab for-loop in Python

Your code looks like mixture of matlab and python already. math.sin is python, not matlab. Try this: import math # Not sure yo...

How to Convert Matlab for-loop in Python

Your code looks like mixture of matlab and python already. math.sin is python, not matlab. Try this: import math # Not sure yo...

18 days ago | 0

Answered

error in calling python function from matlab

I am confused here. This doesn't look like valid python3 statements. import /home/pi/Desktop/plus; plus.add(150, 110) Do you ...

error in calling python function from matlab

I am confused here. This doesn't look like valid python3 statements. import /home/pi/Desktop/plus; plus.add(150, 110) Do you ...

18 days ago | 0

Answered

Real-time communication between python and Simulink.

Interesting. It is an old question but users are still interested in this. How about this approach? Go through a server. On the...

Real-time communication between python and Simulink.

Interesting. It is an old question but users are still interested in this. How about this approach? Go through a server. On the...

18 days ago | 0

Answered

euler's method

What is siny? Is it sin(y)? Also you dy is a constant in the loop, only depends on y(2) and y(1). Maybe it should depend on y(i...

euler's method

What is siny? Is it sin(y)? Also you dy is a constant in the loop, only depends on y(2) and y(1). Maybe it should depend on y(i...

18 days ago | 0

| accepted

Answered

Driving data from GUI application to the matlab script

Why don't you create your matlab script as a function and then take y as an input argument? function foo(y): % whatever yo...

Driving data from GUI application to the matlab script

Why don't you create your matlab script as a function and then take y as an input argument? function foo(y): % whatever yo...

19 days ago | 0

Answered

How to code to form such type of figure? what is the name of such type of graph?

It is called circular plot. matlab polarplot can do similar thing: x = linspace(0, 100) y = x plot(x, y) % a normal plot pol...

How to code to form such type of figure? what is the name of such type of graph?

It is called circular plot. matlab polarplot can do similar thing: x = linspace(0, 100) y = x plot(x, y) % a normal plot pol...

19 days ago | 0

Answered

Too many output arguments while launching workers with parfeval

According to the help of parfeval, the second input argument is NUMOUT. You gave 2?

Too many output arguments while launching workers with parfeval

According to the help of parfeval, the second input argument is NUMOUT. You gave 2?

19 days ago | 1

| accepted

Answered

fprintf for cell array data

Try to convert your cell data into char first. char(the_cell_you_want_to_print)

fprintf for cell array data

Try to convert your cell data into char first. char(the_cell_you_want_to_print)

19 days ago | 0

| accepted

Answered

Why do I get license manager error - 39?

Seems like your license doesn't include Simulink support? Simulink is an extra component on top of matlab.

Why do I get license manager error - 39?

Seems like your license doesn't include Simulink support? Simulink is an extra component on top of matlab.

20 days ago | 0

Answered

How to display an image within the figure in App Designer?

Try this in your callback: [file, path] = uigetfile({'*.png'; '*.jpg'}, 'Select file'); app.Image.Imag...

How to display an image within the figure in App Designer?

Try this in your callback: [file, path] = uigetfile({'*.png'; '*.jpg'}, 'Select file'); app.Image.Imag...

20 days ago | 0

| accepted

Answered

How do i install MATLAB in 20.04

It might have trouble to popup window for input information. Try the silent mode?

How do i install MATLAB in 20.04

It might have trouble to popup window for input information. Try the silent mode?

20 days ago | 0

Answered

Using a string in an if statement to print data from excel.

yes is a string if strcmpi(view_data, 'yes')

Using a string in an if statement to print data from excel.

yes is a string if strcmpi(view_data, 'yes')

20 days ago | 2

| accepted

Answered

find local minima within a time window of interest

You first need to figure out idx range of X for 250-350. Called them idx_start and idx_end. Then just min(Y(idx_start:idx_end)...

find local minima within a time window of interest

You first need to figure out idx range of X for 250-350. Called them idx_start and idx_end. Then just min(Y(idx_start:idx_end)...

26 days ago | 0

Answered

Convert to binary and save to database

Are you talking about image formats here? For binary, do you mean bitmap?

Convert to binary and save to database

Are you talking about image formats here? For binary, do you mean bitmap?

27 days ago | 0

| accepted

Answered

For/if loop for adding up only odd numbers

You mean this? for n = 1:100 if mod(n,2) == 1 c = (1/(n^2)); sum(c); end end Refer to this for how to compute...

For/if loop for adding up only odd numbers

You mean this? for n = 1:100 if mod(n,2) == 1 c = (1/(n^2)); sum(c); end end Refer to this for how to compute...

28 days ago | 0

Answered

Import MATLAB package located in different directory

I think it is similar to this answer. Basically you need to set the env var PYTHONPATH to include the location of that python pa...

Import MATLAB package located in different directory

I think it is similar to this answer. Basically you need to set the env var PYTHONPATH to include the location of that python pa...

29 days ago | 0

Answered

How to read the .out file

readmatrix can handle it. m = readmatrix('your_file')

How to read the .out file

readmatrix can handle it. m = readmatrix('your_file')

29 days ago | 0

Answered

How to read only numerical values of serial output data in MATLAB?

Your data file looks like a configuration file with key/value pair separated by ':'. One way to parse the data is to do this for...

How to read only numerical values of serial output data in MATLAB?

Your data file looks like a configuration file with key/value pair separated by ':'. One way to parse the data is to do this for...

1 month ago | 0