Answered

How to return a true/false logical array from a string array of repeating numbers?

x = [3 2 1 5 1 4 0] L = x == 1

How to return a true/false logical array from a string array of repeating numbers?

x = [3 2 1 5 1 4 0] L = x == 1

3 maanden ago | 0

Answered

Help: Matlab takes forever with unrecognized commands, how can I fix this?

I had this problem and found it was caused by some interaction with "MATLAB Drive" and "MATLAB Drive Connector". As soon as I st...

Help: Matlab takes forever with unrecognized commands, how can I fix this?

I had this problem and found it was caused by some interaction with "MATLAB Drive" and "MATLAB Drive Connector". As soon as I st...

3 maanden ago | 0

Answered

Creating an image using row number, column number, and corresponding Intensity?

Suppose you have your data as you describe in matrix A, then you could use: B = zeros(256,256); % preallocate array to hold ima...

Creating an image using row number, column number, and corresponding Intensity?

Suppose you have your data as you describe in matrix A, then you could use: B = zeros(256,256); % preallocate array to hold ima...

3 maanden ago | 0

| accepted

Answered

How to turn a Yes/No cell array into binary (0-1)

A = {true,false;false,true} B = cell2mat(A)

How to turn a Yes/No cell array into binary (0-1)

A = {true,false;false,true} B = cell2mat(A)

3 maanden ago | 0

Answered

Combining multiple CSV's from a list of csv pairs

So for each row in the original "pairings.csv" you want to create a new .csv file, let's say for the 893rd row you would call th...

Combining multiple CSV's from a list of csv pairs

So for each row in the original "pairings.csv" you want to create a new .csv file, let's say for the 893rd row you would call th...

3 maanden ago | 0

Answered

Making a logical calculation

You can do the calculation for each sheet within your main loop. Then output it to the location you want in the sheet using writ...

Making a logical calculation

You can do the calculation for each sheet within your main loop. Then output it to the location you want in the sheet using writ...

3 maanden ago | 0

Answered

I want to stop my simulink code after 10 seconds of running

So I'm assuming you mean that you want the Simulink model to run for 15 seconds of real time. Otherwise if you just want it to r...

I want to stop my simulink code after 10 seconds of running

So I'm assuming you mean that you want the Simulink model to run for 15 seconds of real time. Otherwise if you just want it to r...

3 maanden ago | 0

Answered

square wave not "limited"

You probably are not correctly specifiying the duty cycle. If you want the square wave to be "on" half the time you should set d...

square wave not "limited"

You probably are not correctly specifiying the duty cycle. If you want the square wave to be "on" half the time you should set d...

3 maanden ago | 0

| accepted

Answered

Plotting 2 different figures but MATLAB outputting same plot.

Are you sure that you aren't getting an error in your code after the first plot is made? Check the command window for errors. ...

Plotting 2 different figures but MATLAB outputting same plot.

Are you sure that you aren't getting an error in your code after the first plot is made? Check the command window for errors. ...

3 maanden ago | 0

| accepted

Answered

Why is ode45 not working when I insert the options input?

Try ode15s instead, it seems to converge, you have to check if the answer makes sense %CALLING FUNCTIONS options=odeset('RelTo...

Why is ode45 not working when I insert the options input?

Try ode15s instead, it seems to converge, you have to check if the answer makes sense %CALLING FUNCTIONS options=odeset('RelTo...

3 maanden ago | 0

| accepted

Answered

Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

On the right hand side of your equal sign you forgot to put the name of the function you were calling, you just list the argumen...

Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

On the right hand side of your equal sign you forgot to put the name of the function you were calling, you just list the argumen...

3 maanden ago | 0

| accepted

Answered

Creating xlsx with multiple sheets

Use the Sheets name value pair in writetable For example: writetable(newTable,'TIME_OF_USE.xlsx','Sheet','mySheetName'); You ...

Creating xlsx with multiple sheets

Use the Sheets name value pair in writetable For example: writetable(newTable,'TIME_OF_USE.xlsx','Sheet','mySheetName'); You ...

3 maanden ago | 0

Answered

How to upload a CSV file using a button on App Designer and using its content in another function.

I have attached a very rough example to get you started along with a data file to try it with. Here are the main ideas (using A...

How to upload a CSV file using a button on App Designer and using its content in another function.

I have attached a very rough example to get you started along with a data file to try it with. Here are the main ideas (using A...

3 maanden ago | 1

| accepted

Answered

How to fill missing frequency response data at the beginning and end?

You could fit your frequency response data with a transfer function model, and then use the model to generate the missing data. ...

How to fill missing frequency response data at the beginning and end?

You could fit your frequency response data with a transfer function model, and then use the model to generate the missing data. ...

3 maanden ago | 1

Answered

cell with not consistent dimensions to double

X = cell2mat(cellfun(@max,Zeit_Flutende_10000_BA,'UniformOutput',false)) Note that you have at least one empty entry, for exam...

cell with not consistent dimensions to double

X = cell2mat(cellfun(@max,Zeit_Flutende_10000_BA,'UniformOutput',false)) Note that you have at least one empty entry, for exam...

3 maanden ago | 0

| accepted

Answered

User input folder path in App Designer with multiple tables

You need to define a value changed callback function for each Edit Field, something like this for the first one, and then simila...

User input folder path in App Designer with multiple tables

You need to define a value changed callback function for each Edit Field, something like this for the first one, and then simila...

3 maanden ago | 0

Answered

Transfer Function Models in the System Identification App

The transfer function models in the System Identification Toolbox are linear systems. If, for the range of inputs, and possibly ...

Transfer Function Models in the System Identification App

The transfer function models in the System Identification Toolbox are linear systems. If, for the range of inputs, and possibly ...

3 maanden ago | 0

Answered

Extract values at a particular time of a simulation to use in the same simulation

You can use the "Stop Simulation" block for this purpose. This block stops the simulation when its input becomes true (non-zer0)...

Extract values at a particular time of a simulation to use in the same simulation

You can use the "Stop Simulation" block for this purpose. This block stops the simulation when its input becomes true (non-zer0)...

3 maanden ago | 0

| accepted

Answered

how to delete all row contain a 1's and how to delete a column contain 1's. Q=[3 1 1 0 0 1;1 3 1 0 1 0;1 1 3 1 0 0;0 0 1 3 1 1;0 1 0 1 3 1;1 0 0 1 1 3]

icd = any(Q==1,1) ird = any(Q==1,2) Qnew = Q(~ird,~icd) In the example matrix you provide, every row and every column contain...

how to delete all row contain a 1's and how to delete a column contain 1's. Q=[3 1 1 0 0 1;1 3 1 0 1 0;1 1 3 1 0 0;0 0 1 3 1 1;0 1 0 1 3 1;1 0 0 1 1 3]

icd = any(Q==1,1) ird = any(Q==1,2) Qnew = Q(~ird,~icd) In the example matrix you provide, every row and every column contain...

3 maanden ago | 0

Answered

Variance using median filter

In your expression: variance = medfilt2(double(I_noise).^2, [N N], 'symmetric') - (medfilt2(double(I_noise), [N N],'symmetric')...

Variance using median filter

In your expression: variance = medfilt2(double(I_noise).^2, [N N], 'symmetric') - (medfilt2(double(I_noise), [N N],'symmetric')...

4 maanden ago | 0

Answered

How to determine sign properties (++, +-, --) of sum block using matlab coding

Suppose your Simulink model is called myModel, and the sum blocks are named Sum1 and Sum2. You can get the signs, for example ...

How to determine sign properties (++, +-, --) of sum block using matlab coding

Suppose your Simulink model is called myModel, and the sum blocks are named Sum1 and Sum2. You can get the signs, for example ...

4 maanden ago | 0

| accepted

Answered

Finding the difference in growth rate between graphs

I'm assuming you want to characterize the growth rates, by the instantaneous rate of change of your control and test values. By ...

Finding the difference in growth rate between graphs

I'm assuming you want to characterize the growth rates, by the instantaneous rate of change of your control and test values. By ...

4 maanden ago | 0

| accepted

Answered

write number next to each other + return value 0/1

Let us say your table is called T, then you can use: T.ID = string(T.hod) + string(T.min) + string(T.s) + string(CasVSekundach...

write number next to each other + return value 0/1

Let us say your table is called T, then you can use: T.ID = string(T.hod) + string(T.min) + string(T.s) + string(CasVSekundach...

4 maanden ago | 0

| accepted

Answered

I want to concatenate two coloumns of table.

I am assuming you have a single MATLAB table, let's call it T, with two columns, one called freqa and another freqb. In this ca...

I want to concatenate two coloumns of table.

I am assuming you have a single MATLAB table, let's call it T, with two columns, one called freqa and another freqb. In this ca...

4 maanden ago | 0

| accepted

Answered

how to filter out column of data with zero value on continuous signal in simulink?

I would suggest assigning the "Initial output" parameter of your Transport Delay block and the "Initial Condition" of your Memor...

how to filter out column of data with zero value on continuous signal in simulink?

I would suggest assigning the "Initial output" parameter of your Transport Delay block and the "Initial Condition" of your Memor...

4 maanden ago | 0

| accepted

Answered

How do I send data to excel formula input cell , and receive the output cell data back to Matlab command window. Any examples please help thanks ?

Assuming it is really required that you go back and forth between Excel and MATLAB you can use MATLAB's spreadsheet link product...

How do I send data to excel formula input cell , and receive the output cell data back to Matlab command window. Any examples please help thanks ?

Assuming it is really required that you go back and forth between Excel and MATLAB you can use MATLAB's spreadsheet link product...

4 maanden ago | 1

Answered

Index in position 2 must be positive or logical value error?

I think the problem is that you are rounding to 2 decimal place rather than just rounding to an integer. This makes indices for ...

Index in position 2 must be positive or logical value error?

I think the problem is that you are rounding to 2 decimal place rather than just rounding to an integer. This makes indices for ...

4 maanden ago | 0

Answered

convert python code into Matlab

Do you actually need to convert your python code into MATLAB (as it says in your question title) or just use Python code from MA...

convert python code into Matlab

Do you actually need to convert your python code into MATLAB (as it says in your question title) or just use Python code from MA...

4 maanden ago | 0

Answered

Behavior of isPassive and hinfnorm.

I'm thinking that you may have some numerical issues with poles very close to the jw axis. Your transfer function uses quite hig...

Behavior of isPassive and hinfnorm.

I'm thinking that you may have some numerical issues with poles very close to the jw axis. Your transfer function uses quite hig...

4 maanden ago | 2

| accepted

Answered

Extract all indexes inside a text file

I'm not quite clear what you want to do with the data, but I'm assuming you want to get the text table into some form that you c...

Extract all indexes inside a text file

I'm not quite clear what you want to do with the data, but I'm assuming you want to get the text table into some form that you c...

4 maanden ago | 1

| accepted