Answered

API usage with matlab

Use webread with options. The first hurdle is the authentication. Try this one: auth If you are comfortable with curl, the no...

API usage with matlab

Use webread with options. The first hurdle is the authentication. Try this one: auth If you are comfortable with curl, the no...

2 months ago | 0

Answered

Why do I receive Not enough input arguments?

Try this: function [SA]=equTriPrismSurfArea(sIn,hIn) for i = 1:5 s1 = sIn(i); h1 = hIn(i); S...

Why do I receive Not enough input arguments?

Try this: function [SA]=equTriPrismSurfArea(sIn,hIn) for i = 1:5 s1 = sIn(i); h1 = hIn(i); S...

2 months ago | 0

Answered

how to use function handles

You don't need varargin function A = function1(n,a,b, c, d) A = n+a+b+c+d; end function A = function2(n,a,b, ~, ~) A = n*...

how to use function handles

You don't need varargin function A = function1(n,a,b, c, d) A = n+a+b+c+d; end function A = function2(n,a,b, ~, ~) A = n*...

2 months ago | 0

| accepted

Answered

Jump to specific page in matlab multiply times // closing PDF File in Matlab

This is not a matlab issue. If you run those two commands on a terminal, you will see the same behavior. Basically the first c...

Jump to specific page in matlab multiply times // closing PDF File in Matlab

This is not a matlab issue. If you run those two commands on a terminal, you will see the same behavior. Basically the first c...

2 months ago | 0

| accepted

Answered

How do I reformat a set of differently formatted dates in to one consistent format?

Check this: https://www.mathworks.com/help/matlab/ref/datestr.html

How do I reformat a set of differently formatted dates in to one consistent format?

Check this: https://www.mathworks.com/help/matlab/ref/datestr.html

2 months ago | 0

Answered

Can I use fuzzy logic function in online?

It belongs to a toolbox: https://www.mathworks.com/products/fuzzy-logic.html Maybe your license doesn't include this toolbox?

Can I use fuzzy logic function in online?

It belongs to a toolbox: https://www.mathworks.com/products/fuzzy-logic.html Maybe your license doesn't include this toolbox?

2 months ago | 0

Answered

Is there a way to put the same uitable in two seperate places? (Matlab App Designer)

Is it better to put your table in a shared area of tabs?

Is there a way to put the same uitable in two seperate places? (Matlab App Designer)

Is it better to put your table in a shared area of tabs?

2 months ago | 0

Answered

Running a Python Script with multiple inputs and outputs through Matlab

One interesting trick is to use json. From python, serialize all the outputs into one single json string. In matlab, convert the...

Running a Python Script with multiple inputs and outputs through Matlab

One interesting trick is to use json. From python, serialize all the outputs into one single json string. In matlab, convert the...

2 months ago | 1

| accepted

Answered

Convert Subsystem into Referenced Subsystem programmatically?

Check this one please. https://www.mathworks.com/help/simulink/slref/simulink.subsystem.converttomodelreference.html

Convert Subsystem into Referenced Subsystem programmatically?

Check this one please. https://www.mathworks.com/help/simulink/slref/simulink.subsystem.converttomodelreference.html

2 months ago | 0

Answered

rectangle invisible in matlab

Try this: H = findobj('Type', 'images.roi.rectangle');

rectangle invisible in matlab

Try this: H = findobj('Type', 'images.roi.rectangle');

2 months ago | 0

Answered

Read parquet file error

matlab can call python script. Use python to read and then pass the data to matlab. Or use python to convert the data into CSV o...

Read parquet file error

matlab can call python script. Use python to read and then pass the data to matlab. Or use python to convert the data into CSV o...

2 months ago | 0

| accepted

Answered

how to simplify the inequality?

Check this: https://www.mathworks.com/matlabcentral/answers/561893-how-to-simplify-inequalities

how to simplify the inequality?

Check this: https://www.mathworks.com/matlabcentral/answers/561893-how-to-simplify-inequalities

2 months ago | 0

| accepted

Answered

isolate masks from an image that was created in a non-MATLAB program

Interesting. Can your python program outputs the masks only? That will be much easier for matlab to process the masks. Then yo...

isolate masks from an image that was created in a non-MATLAB program

Interesting. Can your python program outputs the masks only? That will be much easier for matlab to process the masks. Then yo...

2 months ago | 0

| accepted

Answered

Python Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 2: ordinal not in range(128)

As you noticed, this is a python error. Try first using python directly to read, without using matlab.

Python Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 2: ordinal not in range(128)

As you noticed, this is a python error. Try first using python directly to read, without using matlab.

2 months ago | 0

Answered

String array from Matlab to Python

Which version of matlab are you using? This is the doc of R2021a: doc

String array from Matlab to Python

Which version of matlab are you using? This is the doc of R2021a: doc

2 months ago | 0

| accepted

Answered

How can I use or call install matlab App file in my normal matlab script ?

You meat this: https://www.mathworks.com/help/matlab/ref/matlab.apputil.run.html

How can I use or call install matlab App file in my normal matlab script ?

You meat this: https://www.mathworks.com/help/matlab/ref/matlab.apputil.run.html

2 months ago | 0

| accepted

Answered

Saving data for each iteration in a for loop

Your info needs to be initialized outside the loop, right?

Saving data for each iteration in a for loop

Your info needs to be initialized outside the loop, right?

3 months ago | 1

Answered

Why report “/usr/local/lib/MatLabLib/mymatlab.dylib: no suitable image found. Did find: /usr/local/lib/MatLabLib/mymatlab.dylib: open() failed with errno=13”?

So you are doing this on Mac, right? Did you try to use the env var LD_LIBRARY_PATH to point to your dylib? Use this from a te...

Why report “/usr/local/lib/MatLabLib/mymatlab.dylib: no suitable image found. Did find: /usr/local/lib/MatLabLib/mymatlab.dylib: open() failed with errno=13”?

So you are doing this on Mac, right? Did you try to use the env var LD_LIBRARY_PATH to point to your dylib? Use this from a te...

3 months ago | 0

Answered

What does a=[b(90:end) b(1:89)] represent ?

temp1 stores the return from calling hor. It is an array of more than 90 elements. temp2 reverts the order of some element. Thi...

What does a=[b(90:end) b(1:89)] represent ?

temp1 stores the return from calling hor. It is an array of more than 90 elements. temp2 reverts the order of some element. Thi...

3 months ago | 0

| accepted

Answered

Download files from https server using username and password

Try this: username = 'Your username here'; password = 'Your password here'; authStr = [username ':' password]; base64Str = [...

Download files from https server using username and password

Try this: username = 'Your username here'; password = 'Your password here'; authStr = [username ':' password]; base64Str = [...

3 months ago | 1

Answered

animation for my simulation

This fileexchange post seems helpful. https://www.mathworks.com/matlabcentral/fileexchange/24323-screencapture-screenshot-of-co...

animation for my simulation

This fileexchange post seems helpful. https://www.mathworks.com/matlabcentral/fileexchange/24323-screencapture-screenshot-of-co...

3 months ago | 0

Answered

Changing Python Environment used by MATLAB

virtualenv is challenging. Is it possible to avoid virtualenv?

Changing Python Environment used by MATLAB

virtualenv is challenging. Is it possible to avoid virtualenv?

3 months ago | 0

Answered

How to use Matlab to download data from an AWS S3 bucket

Try this? https://www.mathworks.com/help/cloudcenter/ug/transfer-data-to-amazon-s3-buckets.html

How to use Matlab to download data from an AWS S3 bucket

Try this? https://www.mathworks.com/help/cloudcenter/ug/transfer-data-to-amazon-s3-buckets.html

3 months ago | 0

| accepted

Answered

Getting h5py error for python

Make sure you can use h5py in python first. Check where it is installed. Then use setenv inside matlab to set the env var PYTH...

Getting h5py error for python

Make sure you can use h5py in python first. Check where it is installed. Then use setenv inside matlab to set the env var PYTH...

3 months ago | 0

Answered

Is create a instance inside another class possible?

Yes, it is doable: classdef Apoint < handle properties (Access=public) x y end methods ...

Is create a instance inside another class possible?

Yes, it is doable: classdef Apoint < handle properties (Access=public) x y end methods ...

3 months ago | 0

| accepted

Answered

Load pretrained keras network using deep learning toolbox

Not sure if they are compatible. Why not loading it from python code? Call python from matlab.

Load pretrained keras network using deep learning toolbox

Not sure if they are compatible. Why not loading it from python code? Call python from matlab.

3 months ago | 0

Answered

How can i plot in matlab ?

Check the command surf: https://www.mathworks.com/help/matlab/ref/surf.html

How can i plot in matlab ?

Check the command surf: https://www.mathworks.com/help/matlab/ref/surf.html

3 months ago | 0

| accepted

Answered

How to replace ones and zeros in a logical vector with vectors of corresponding length?

Try this: idx = [1 0 0 1 1 0 0]; % appearance of logical index a = [2 3 4]; % the values of a have to replace the on...

How to replace ones and zeros in a logical vector with vectors of corresponding length?

Try this: idx = [1 0 0 1 1 0 0]; % appearance of logical index a = [2 3 4]; % the values of a have to replace the on...

3 months ago | 0

Answered

How do I make my program KEEP doing a command at a certain condition?

Try this: if Val <= 20 max_time = 120; % assume do it for at most 2 mins=120secs wait_time = 10; % wait for 10 sec. S...

How do I make my program KEEP doing a command at a certain condition?

Try this: if Val <= 20 max_time = 120; % assume do it for at most 2 mins=120secs wait_time = 10; % wait for 10 sec. S...

3 months ago | 0

Answered

how to add context menu in app designer Please suggest methods Thank you

You mean the context menu from the Component Library:

how to add context menu in app designer Please suggest methods Thank you

You mean the context menu from the Component Library:

3 months ago | 0

| accepted