E-mails with feedback/questions about FEX submissions are welcomed. In general I will post e-mails about Answers on the related page, unless there is good cause not to do so.

Answered

Alternative for eval of dynamic variables

If you use a cell array you can store everything in a single array even if the size are different. Because you can index into th...

Alternative for eval of dynamic variables

If you use a cell array you can store everything in a single array even if the size are different. Because you can index into th...

ongeveer 5 uur ago | 0

Answered

figure adding plot to named figures?

You can modify the NextPlot property of your axes objects. You can do this by modifying the property, or by using hold on. h=st...

figure adding plot to named figures?

You can modify the NextPlot property of your axes objects. You can do this by modifying the property, or by using hold on. h=st...

ongeveer 15 uur ago | 0

Answered

How to pass the same function to different columns?

You need to specify the target axes, otherwise the function will use gca for each call, so that will be the same axes. figure(1...

How to pass the same function to different columns?

You need to specify the target axes, otherwise the function will use gca for each call, so that will be the same axes. figure(1...

ongeveer 16 uur ago | 0

| accepted

Answered

Reading Workspace variable into csv file

The most important thing to do first is to reshape the data to a 2D array. Then we can use the writematrix function as normal. ...

Reading Workspace variable into csv file

The most important thing to do first is to reshape the data to a 2D array. Then we can use the writematrix function as normal. ...

1 dag ago | 1

| accepted

Answered

How to concatenate different rows

You can't concatenate files. (Technically you can, but showing how you could do it will not be helpful for you) What you need t...

How to concatenate different rows

You can't concatenate files. (Technically you can, but showing how you could do it will not be helpful for you) What you need t...

1 dag ago | 0

Answered

I can't get to diplay values in a edit box. HELP!!!

It looks like you are trying to set a numeric value as the String property. You will first have to convert your symbolic values ...

I can't get to diplay values in a edit box. HELP!!!

It looks like you are trying to set a numeric value as the String property. You will first have to convert your symbolic values ...

1 dag ago | 0

| accepted

Answered

Creating a Path to a sub folder

As mentioned in the documentation for uigetfile you can capture the path of the selected files as the second output.

Creating a Path to a sub folder

As mentioned in the documentation for uigetfile you can capture the path of the selected files as the second output.

2 dagen ago | 0

Answered

How to read .params file via matlab?

Reading text files to Matlab variables is one of the most commons tasks. One of the many, many functions is my readfile function...

How to read .params file via matlab?

Reading text files to Matlab variables is one of the most commons tasks. One of the many, many functions is my readfile function...

2 dagen ago | 0

| accepted

Answered

Global variables when doing Matlab array job in a cluster

I don't have a direct link to the doc, but I'll take Walter's word for it: "The initial value of the global variables will not ...

Global variables when doing Matlab array job in a cluster

I don't have a direct link to the doc, but I'll take Walter's word for it: "The initial value of the global variables will not ...

2 dagen ago | 0

| accepted

Answered

Outputs for smoothdata function

As you can read in the documention for the smoothdata function the first output is the smoothed data. It will not actually produ...

Outputs for smoothdata function

As you can read in the documention for the smoothdata function the first output is the smoothed data. It will not actually produ...

3 dagen ago | 0

Answered

splitapply with own created function

You can probably get around this by wrapping your function in an anonymous function: fun=@(input1)maxperinterval(input1,s); ...

splitapply with own created function

You can probably get around this by wrapping your function in an anonymous function: fun=@(input1)maxperinterval(input1,s); ...

3 dagen ago | 0

| accepted

Answered

can a struct function access struct elements ?

When defining an anonymous function it will have access to all the variables in scope. It doesn't matter how you store that anon...

can a struct function access struct elements ?

When defining an anonymous function it will have access to all the variables in scope. It doesn't matter how you store that anon...

3 dagen ago | 0

Answered

How to simulate the outage probability of user data rate versus signal to noise ratio?

Since that apparently was the solution, I'll post it as an answer: SNR_vector_dB=-20:10:30; %the SNR vector R_th = 0.512; % ...

How to simulate the outage probability of user data rate versus signal to noise ratio?

Since that apparently was the solution, I'll post it as an answer: SNR_vector_dB=-20:10:30; %the SNR vector R_th = 0.512; % ...

3 dagen ago | 0

| accepted

Answered

Pause until input from one of two buttons

You can also unpause uiwait with uiresume, not just by closing the figure.

Pause until input from one of two buttons

You can also unpause uiwait with uiresume, not just by closing the figure.

3 dagen ago | 0

| accepted

Answered

2 popup menus connected

Ynumber=[1;1;2;3;5]; Version={'AP'; 'AP_R' ;'AP' ;'TI1' ;'TI2'}; mytable= table(Ynumber,Version); %Y_selected=get(handles.d...

2 popup menus connected

Ynumber=[1;1;2;3;5]; Version={'AP'; 'AP_R' ;'AP' ;'TI1' ;'TI2'}; mytable= table(Ynumber,Version); %Y_selected=get(handles.d...

4 dagen ago | 0

Answered

请问画三维曲面图时，如果自变量的区间边界是一个函数怎么办？

Use meshgrid or ndgrid to generate a full grid of coordinates. Then you mark all points outside your triangle with inpolygon. Th...

请问画三维曲面图时，如果自变量的区间边界是一个函数怎么办？

Use meshgrid or ndgrid to generate a full grid of coordinates. Then you mark all points outside your triangle with inpolygon. Th...

5 dagen ago | 0

| accepted

Answered

Conversion to char from logical is not possible.

You need to pass the option as a parameter to the integral function instead of defining it earlier. I= @(x)((x.^(3).*exp(-x...

Conversion to char from logical is not possible.

You need to pass the option as a parameter to the integral function instead of defining it earlier. I= @(x)((x.^(3).*exp(-x...

6 dagen ago | 0

| accepted

Answered

How can I optimize the value of a matrix?

The code below will fit a value for B with the fminsearch function. Note that it is relatively sensitive to a good initial guess...

How can I optimize the value of a matrix?

The code below will fit a value for B with the fminsearch function. Note that it is relatively sensitive to a good initial guess...

6 dagen ago | 0

| accepted

Answered

Index exceeds the number of array elements (1).

If you set a breakpoint just before that line you will notice the values of all your variables: s is a scalar and L has a value ...

Index exceeds the number of array elements (1).

If you set a breakpoint just before that line you will notice the values of all your variables: s is a scalar and L has a value ...

6 dagen ago | 0

Answered

How to remove rows in a matrix based on the first column

I guess this is what you need: data=600000*rand(224836,3); L=data(:,1)<=300000 data(L,:)=[] ;

How to remove rows in a matrix based on the first column

I guess this is what you need: data=600000*rand(224836,3); L=data(:,1)<=300000 data(L,:)=[] ;

6 dagen ago | 0

| accepted

Answered

Hello guys, I need help.

The indices you get in your last operation can be converted to subscripts, which will correspond to your three inputs. ind=ind(...

Hello guys, I need help.

The indices you get in your last operation can be converted to subscripts, which will correspond to your three inputs. ind=ind(...

8 dagen ago | 1

| accepted

Answered

Hi, there is a (1x6) vector that i want to extract values from. I used strings to pick-up the subtitle and now the problem is that i have to extract every value under the subtitle (e.g Oxygen). How to i extract those values without hardcoding ?

It would probably make a more sense to use the table data type instead of a string array that is parsed to separate variables. ...

Hi, there is a (1x6) vector that i want to extract values from. I used strings to pick-up the subtitle and now the problem is that i have to extract every value under the subtitle (e.g Oxygen). How to i extract those values without hardcoding ?

It would probably make a more sense to use the table data type instead of a string array that is parsed to separate variables. ...

8 dagen ago | 0

| accepted

Answered

Why my GUI keeps producing error when I run it?

You define T like this: Th_1=str2double(handles.Theta_1.String)*pi/180; Th_2=str2double(handles.Theta_2.String)*pi/180; Th_3=...

Why my GUI keeps producing error when I run it?

You define T like this: Th_1=str2double(handles.Theta_1.String)*pi/180; Th_2=str2double(handles.Theta_2.String)*pi/180; Th_3=...

9 dagen ago | 0

| accepted

Answered

How to perform robust line fitting in a binary image

They key is in how you define what a good fit is. The code below uses the root-mean-square of the orthogonal distance between al...

How to perform robust line fitting in a binary image

They key is in how you define what a good fit is. The code below uses the root-mean-square of the orthogonal distance between al...

10 dagen ago | 0

| accepted

Answered

How do I remove a set of repeated values in a x by 2 matrix?

I think the code below is what you need. There may be much more efficient methods, but this will do as long as this will not be ...

How do I remove a set of repeated values in a x by 2 matrix?

I think the code below is what you need. There may be much more efficient methods, but this will do as long as this will not be ...

10 dagen ago | 0

Answered

find the next row of an element in a matrix

This probably isn't the fastest solution, but it does get the output you describe. The last loop I had to guess, so let me know ...

find the next row of an element in a matrix

This probably isn't the fastest solution, but it does get the output you describe. The last loop I had to guess, so let me know ...

10 dagen ago | 1

| accepted

Answered

ButtonDownFcn disabled after using matlab rotate 3D tool

As you can read in the <https://www.mathworks.com/help/matlab/ref/rotate3d.html doc>, using the rotate3d function without any in...

ButtonDownFcn disabled after using matlab rotate 3D tool

As you can read in the <https://www.mathworks.com/help/matlab/ref/rotate3d.html doc>, using the rotate3d function without any in...

10 dagen ago | 0

| accepted

Answered

Gray value for each point plot over image

Since the Punkte array contains coordinates, you can convert them to indices. You need a way to translate the x and y positions ...

Gray value for each point plot over image

Since the Punkte array contains coordinates, you can convert them to indices. You need a way to translate the x and y positions ...

10 dagen ago | 1

Answered

Matlab function for cumulative power

This code does what you ask without loops. %define inputs r=9; n=4; [a,b]=meshgrid(0:n); exponents=a-b; exponents(expone...

Matlab function for cumulative power

This code does what you ask without loops. %define inputs r=9; n=4; [a,b]=meshgrid(0:n); exponents=a-b; exponents(expone...

11 dagen ago | 1

Answered

How to use inputs from GUI in a separate script?

This is trivial if you convert your script into a function. With complex functions with many inputs and outputs it would often m...

How to use inputs from GUI in a separate script?

This is trivial if you convert your script into a function. With complex functions with many inputs and outputs it would often m...

14 dagen ago | 0