Réponse apportée
Remove rows with consecutive numbers
I wrote down a function your A (matrix), k (number of consecutive numbers) and result is newA. Call that function in your works...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
how to do curve fiting of polynom?
As far as I understand from your question I have fixed your array definition as follows: Please read my comments below. And ch...

environ 7 ans il y a | 0

Réponse apportée
Remove rows with consecutive numbers
Hello Sena, Try this below: newA = A(~all((diff(A')' == 1)')',:);

environ 7 ans il y a | 0

Réponse apportée
I have over a 100 checkboxes. I want to check them with one line of code in Appdesigner the same way that I did in Matlab 2013.. However the same line of code does not work in Appdesigner. Here is the code from 2013 Matlab
I have tried this, created 5 checkboxes and a button for check all. You can get the struct fieldnames and filter by its name C...

environ 7 ans il y a | 3

| A accepté

Réponse apportée
how to detect empty rows and columns from 3-D matrix and crop them?
Hi, Try this below: %% delete zero rows Frames = reshape(Frames(bsxfun(@times,any(Frames,2),ones(1,size(Frames,2)))>0),[],si...

environ 7 ans il y a | 0

Question


How to find best path in a nx2 matrix?
Hi everyone, I have a problem about museum rooms. I want to block(close) k number of rooms without blocking the path and all...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
check box GUI and grapsh
I recommend you write 6 callbacks for each checkbox, and check the value of checkbox. So any time a checkbox is checked it plo...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Smooth the data and find major peaks
findpeaks is built-in function of Matlab and it already works for detecting peaks and locations. Try below: load('matlab.mat...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
In GUI when we have a tabgroup how to change the current tab by pressing a bottom?
Hi Amir, Try the code below. I have commented some lines. classdef Main_TabbedTest < handle % you should create a handle...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
How to import and read Excel input into an executable
Hi, You can try below to get all excel data. [fName,pName] = uigetfile({'*.xlsx';'*.xls'},'Please Select an excel file'); % ...

environ 7 ans il y a | 2

Réponse apportée
num2str with latex
You can use rats function to get what you need actually. Try this below: m = 1/4; a = ['$\it{\bf{(f_{ohm}P)^{',rats(m), '}}}...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
I want to filter values from a data matrix
Try this small code below: dataMatrix = {'Rownames','Cond1', 'Cond1' , 'Cond1', 'Pvals'; 'a', 15, 23, 21, ...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Get max values from a table
Hi Jesse, Please try this below. This code actually finds the 4 max values. But also you can try to get a moving average (us...

environ 7 ans il y a | 0

Réponse apportée
generating matrices of the possible combinations
Try this; M is a 1x10 cell array which contains 3x3 matrices chosen from the X. X = [1 7 9 10 15 4 8 5 9 21 ...

environ 7 ans il y a | 0

Réponse apportée
How to add elements to a matrix one-by-one?
Hi, I tried to fix the errors (cut and paste some lines inside the inner for loop), and added outer for loop for 10 times calc...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
is it possible to move first GUI figure to center of window?
Hi, Change the lines 39-44 like below: if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else ...

environ 7 ans il y a | 0

Réponse apportée
Histogram with values above the bars
Hello Tiago, Try this for getting labels on the top of the bars of your histogram. data = 10*rand(1,100); x = histogram(da...

environ 7 ans il y a | 1

Réponse apportée
Indexed exceeds matrix dimensions
Your out and Ets variable is below: out = [21 20 24 26 39 36 1 28 33 15] % 1x10 array Ets = [.. ..] % 10x13 matrix Ef_total...

environ 7 ans il y a | 1

Réponse apportée
Index in position 1 exceeds array bounds (must not exceed 33).
Try this, E=Z(:,fx);

environ 7 ans il y a | 0

Réponse apportée
Is it possible to give style for my GUI buttons?
As far as I know there is no documented property for button shape. You can get the java object and manipulate it. See below li...

environ 7 ans il y a | 0

Réponse apportée
Positioning components in a large uipanel
Try this, you can also get the pixel positions in the last line I have commented. f = figure('Units','normalized','Position',[0...

environ 7 ans il y a | 0

Réponse apportée
How can I use loops to reduce the code size
You can try this, I haven't checked working correctly since there is no data. clc clear all C1 = xlsread('data1.xlsx'); y =...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
sorting the values of a vector into a new one by its elements size
Try this, xnew = sort(horzcat(y,x)) % concatane vectors then sort all %% OR xnew = horzcat(sort(y),sort(x)) % sort x, so...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Unable to perform assignment because the left and right sides have a different number of elements. Can anyone help me with this?
Hi, Change like below: dy=zeros(2,2); dy(:,1)=(y.*(1-y)./(y-x)).*(dP)./(Pr) ; dy(:,2)=log((y.*Pr)./(x.*P1v))-log((1-y).*Pr...

environ 7 ans il y a | 0

Réponse apportée
How can i specify an xticklabel as a range so for the first 12 data points it shows 2008 across it and for the next 12 it shows 2009 and so on?
Hi Ben, Maybe this could help? yearDef = cell(24,1) yearDef(1:12,1) = {'2008'} yearDef(13:end,1) = {'2009'}; xticklabel...

environ 7 ans il y a | 0

Réponse apportée
GUI pop up menu plot data
Hi, The problem is they are unknown you are inside a different callback function so your workspace changes. Share your code, a...

environ 7 ans il y a | 0

Réponse apportée
Matlab read/write excel
Hi, check the link xlsread below. also look at the xlswrite. xlsread

environ 7 ans il y a | 0

Réponse apportée
Hi everyone, could u please help me?
You should first create function based on your time vector, using impedance formula. for example your formula f is below. Defin...

environ 7 ans il y a | 0

Réponse apportée
Finding the mean of my entire data
You can not put file name into mean function. Please put variable name which exist in your workspace after loading your data. ...

environ 7 ans il y a | 0

Réponse apportée
Rotate a 2D plot around a specific point on the plot?
I think you can easily use rotate function which already manipulates the data. It is different from view. rotate Here for you ...

environ 7 ans il y a | 0

Charger plus