Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
How i can find the difference between 2 values.
y = T1 - T2

más de 3 años hace | 0

Respondida
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 ...

más de 3 años hace | 0

| aceptada

Respondida
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 ...

más de 3 años hace | 1

| aceptada

Respondida
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

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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 ...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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 ...

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

Respondida
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

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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. ...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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. ...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Cargar más