回答済み
command strategy for converting the following multi table text file into matlab array
If you don't know how many rows there are in each data set or where the data rows begin and end then you could do this: % read ...

5ヶ月 前 | 0

| 採用済み

回答済み
How to take the average of 7 rows then other 7 until the data finished and save into new tab of excel
Read the data in using readmatrix. Once you have read the table into an m by 150 array, let's call it A, then just use movmean ...

5ヶ月 前 | 1

| 採用済み

回答済み
I am getting data values as 1 x 100. How to reduce it to 1x6 i.e, require values of y w.r.t x at 0.2 0.4, 0.6, 0.8
I don't have the symbolic toolbox, but in ordinary MATLAB you would use interp1 for this

5ヶ月 前 | 1

| 採用済み

回答済み
How to make a matrix with mixed string and number elements ?
Here's another approach, not so nicely vectorized as @Adam Danz, in which I store the values in a cell array I hadn't known abo...

5ヶ月 前 | 0

回答済み
matlab function to simulink error
I think it looks like you are not using the "MATLAB Function" block correctly. If you open that block, maybe you just have the ...

5ヶ月 前 | 0

| 採用済み

回答済み
Table to Array conversion using a for loop
I agree with @Stephen23 comments about not using dynamically named variables, here's another approach, in which you store all of...

5ヶ月 前 | 0

| 採用済み

回答済み
If else -statement doesn't work
Actually you can do this in just one line using MATLAB discretize taAct.actClass = discretize(taAct.Sum,[0,30,40,60,inf]) - 1 ...

5ヶ月 前 | 1

| 採用済み

回答済み
up or down counting based on input signal value
This is one approach, the counter will increment at each sample time of the delay block (z^-1). You can set that parameter in th...

5ヶ月 前 | 0

回答済み
How to reduce the computation time of for loop?
With the code you show, it appears that the values of S1, Sc_win, and S do not change as a function of any of the loop variables...

5ヶ月 前 | 0

回答済み
remove missing entries from cell array
I think you are close, just use new_cell_array= cellfun(@rmmissing,old_cell_array,'UniformOutput',false)

5ヶ月 前 | 0

回答済み
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

5ヶ月 前 | 0

回答済み
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...

5ヶ月 前 | 0

回答済み
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...

5ヶ月 前 | 0

| 採用済み

回答済み
How to turn a Yes/No cell array into binary (0-1)
A = {true,false;false,true} B = cell2mat(A)

5ヶ月 前 | 0

回答済み
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...

5ヶ月 前 | 0

回答済み
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...

5ヶ月 前 | 0

回答済み
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...

5ヶ月 前 | 0

回答済み
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...

5ヶ月 前 | 0

| 採用済み

回答済み
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. ...

5ヶ月 前 | 0

| 採用済み

回答済み
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...

5ヶ月 前 | 0

| 採用済み

回答済み
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...

5ヶ月 前 | 0

| 採用済み

回答済み
Creating xlsx with multiple sheets
Use the Sheets name value pair in writetable For example: writetable(newTable,'TIME_OF_USE.xlsx','Sheet','mySheetName'); You ...

5ヶ月 前 | 0

回答済み
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...

5ヶ月 前 | 1

| 採用済み

回答済み
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. ...

6ヶ月 前 | 1

回答済み
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...

6ヶ月 前 | 0

| 採用済み

回答済み
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...

6ヶ月 前 | 0

回答済み
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 ...

6ヶ月 前 | 0

回答済み
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)...

6ヶ月 前 | 0

| 採用済み

回答済み
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...

6ヶ月 前 | 0

回答済み
Variance using median filter
In your expression: variance = medfilt2(double(I_noise).^2, [N N], 'symmetric') - (medfilt2(double(I_noise), [N N],'symmetric')...

6ヶ月 前 | 0

さらに読み込む