Réponse apportée
How to change the colorbar label distance
c = colorbar; clim([84 100]) c.Ticks = [84:2:100]; c.TickLabels{1} = 0;

plus d'un an il y a | 0

| A accepté

Réponse apportée
How to save plots to the specified sheet in an existing Excel file?
In the functions associated with Excel reading or writing, you usually have a 'Sheet' parameter, for example, to write on the se...

plus d'un an il y a | 0

Réponse apportée
Error using stem()...... X must be same length as Y.
You need to replace for t=1:1 by for t = 1:l

plus d'un an il y a | 1

| A accepté

Réponse apportée
Write cell array into an excel file with multiple sheets
Untested but something like this should work. This is considering you have the same field names for all the structures, and that...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Incorrect number or types of inputs and outputs for function 'isfinite'
You need to remove the quotes x=fsolve(@system,[0 0]) function f=system(x) f=[2*x(1)+x(2)+x(1)^3; x(1)+x(1)*x(2)+exp(x(1))]; ...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Efficient searching to find the first element of an array meeting a condition
EDIT: See @Bruno Luong answer, a simple for loop will actually be faster. Depending on your data, you can split the search i...

plus d'un an il y a | 1

| A accepté

Réponse apportée
How to use "error " in code in function
It is just telling you where the error occurs in each subfunction. You can't have a return after the 'error' because error WIL...

plus d'un an il y a | 0

Réponse apportée
Optimization of multiple variables
I assume you want to have three solutions optimizing respectively y1, y2 and y3 ? In this case you need to split them into 3 fu...

plus d'un an il y a | 0

Réponse apportée
2nd order non-linear differential equation
If you have symoblic toolbox, You have your answer on this page : https://uk.mathworks.com/help/symbolic/solve-a-single-differe...

plus d'un an il y a | 0

Réponse apportée
Extract data tips values from a plot in app designer
p = plot([0:5],[1:6]) for i = 1:6 datatipsX(i) = p.Children(i).X; datatipsY(i) = p.Children(i).Y; end

plus d'un an il y a | 0

| A accepté

Réponse apportée
How to get more than one SQL table data using MATLAB?
Hi, First, exec is not recommended, you should use execute instead. Plus, for select queries, it is better to use select func...

plus d'un an il y a | 0

Réponse apportée
How to arrange alternate cells of a column into two columns?
A = [2 6 7 3 8 3 2 9 7 5 4 1]' B = [A(1:2:end) A(2:2:end)]

plus d'un an il y a | 1

| A accepté

Réponse apportée
Mean of cell array with non-uniform cell array size size
Something like this should do the job: slots = 16; height_row = []; for i=1:slots for j = 1:profiles(i) if leng...

plus d'un an il y a | 1

| A accepté

Réponse apportée
Convert JSON to Table and Query Specific Value
jsonData = '{"views":[{"Name":"A","Conf":"High","View":"Negative"}, {"Name":"B","Conf":"Low","View":"Negative"}, {"Name":"C","Co...

plus d'un an il y a | 1

| A accepté

Réponse apportée
saving the R G B values displayed with impixelinfo in an image into a matrix
Everything is already stored in h, you can retrieve the values with h.CData(pixel_x, pixel_y, :). Be careful the values are unit...

plus d'un an il y a | 0

Réponse apportée
Problem in Connection of 3-phase inverter circuit with BLDC Motor Block in Simulink
This is because you try to connect a Simulink signal to a Simscape eletrical signal. Have a look at this : https://uk.mathworks...

plus d'un an il y a | 0

Réponse apportée
Search for a specific file in a parallel folder in Matlab
If the customnames are unique, you can use: your_path = 'C:\...\6_Data'; custoname = 'customname1'; folders = dir(your_path);...

plus d'un an il y a | 2

| A accepté

Réponse apportée
when converting a time into an array I lose the date column
The first class is a 16x1 timetable. This means the time column is not a variable but is the indexing column. You don't have t...

plus d'un an il y a | 1

Réponse apportée
Unrecoginized Fieldname although it should be correctly defined
You can't use dots in your fieldname. The dot creates a new field in the structure, but it can't be done directly in the name of...

plus d'un an il y a | 0

Réponse apportée
The graph is empty, how can i solve this
This is because you use h in your for loop making it a single numerical value (=n). Replace h in the for loop with another name ...

plus d'un an il y a | 1

| A accepté

Réponse apportée
Why does legend highlight the wrong colors with lineplot?
This is because you plot these two curves in last. Legend is affected to the order of the plots, legend{1} is first plot, legend...

plus d'un an il y a | 1

| A accepté

Réponse apportée
How to set properly single colorbar for subplots?
Hi In your case, have a look at tiledlayout, like follows: % Sample data for the subplots data1 = rand(10, 10); data2 = rand...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Error in first-level analysis using SPM12, seeking assistance.
This means sess.multi is an empty cell array, therefore you can't call sess.multi{1} because it does not exist. You should add ...

plus d'un an il y a | 0

Réponse apportée
Subscripted assignment dimension mismatch
This is because your interference variable is a 1*num_users vector, leading to lagrange_multiplier also being a 1*num_users vect...

plus d'un an il y a | 0

Réponse apportée
Keep Variable Name when adding Variables to a table
Hi out.combinednew = addvars(out.combined,out.newvars.(1),'NewVariableNames','Q_end');

plus d'un an il y a | 0

Réponse apportée
Dividing part of a histogram
Let's say your data is stored like : y = [2 8 5 10] Where y(1) is your 0-4 range, y(2) your 5-8 range etc. Then you could do...

plus d'un an il y a | 0

Réponse apportée
remove the empty values
A = readtable("Book2.xlsx") L1 = A.Value1([A.Parameters{:}] == 'L') L2 = A.Value2([A.Parameters{:}] == 'L') T1 = A.Value1([A....

plus d'un an il y a | 0

Réponse apportée
check if the destination file is the same as what I want
I guess you can use isfile to check if the matlab file you need is somewhere in the folder. Like if isfile(a.mat) my_fil...

plus d'un an il y a | 0

Réponse apportée
Change a directory file from App Designer Matlab
You can use movefile function in a button, here called move_file, two edit fields, one for the file to move, the other for the d...

plus d'un an il y a | 0

| A accepté

Réponse apportée
need help making a loop URGENT
while x>= 2.9 % run your script end

environ 2 ans il y a | 0

Charger plus