已回答
Matlab fails to launch appdesigner or open .mlapp files
Not really clear what is going on here, but it looks like you have a file called ComponentController.m whose error is preventing...

2 years 前 | 0

| 已接受

已回答
Update App GUI with Simulink data in real-time
Please provide a little more context. From what you describe it sounds like your Simulink model has an interpreted MATLAB functi...

2 years 前 | 0

已回答
How can I find the magnitude of a vector B when I know the unit vector B, the vector A and the result cross product of AXB?
Lets say you have the final Torque, and arm as a three element vectors T, and A respectiviely. Then I think the magnitude of th...

2 years 前 | 0

已回答
How i can find the difference between 2 values.
y = T1 - T2

2 years 前 | 0

已回答
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 ...

2 years 前 | 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 ...

2 years 前 | 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

2 years 前 | 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...

2 years 前 | 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 ...

2 years 前 | 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...

2 years 前 | 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 ...

2 years 前 | 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...

2 years 前 | 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...

2 years 前 | 0

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

2 years 前 | 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

2 years 前 | 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...

2 years 前 | 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...

2 years 前 | 0

| 已接受

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

2 years 前 | 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...

2 years 前 | 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...

2 years 前 | 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...

2 years 前 | 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...

2 years 前 | 1

| 已接受

已回答
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. ...

2 years 前 | 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...

2 years 前 | 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...

2 years 前 | 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 ...

2 years 前 | 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...

2 years 前 | 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. ...

2 years 前 | 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...

2 years 前 | 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...

2 years 前 | 0

加载更多