Réponse apportée
Finding the spectrums of three segments of a signal without using the 'fiindpeaks' function?
There can be quite a few approaches to do this A simple yet effective method would be to analyze the slope, you can start by fi...

environ 7 ans il y a | 0

Réponse apportée
I get these errors when I run this code and need help finding a solution.
Yes the uitreenode property is set to Text by that do you mean this line of code? nodes(k)=uitreenode(t, 'Text', FolderName);...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
How can I make a column appending columns which are of size of sum of other column?
lat=[1 2 3 4 5]; CG=[5 10 20 11 12]; output = repelem(lat', CG, 1);

environ 7 ans il y a | 0

Réponse apportée
Running a function script
In Fact You Can Do It. Open The Popup Menu Under Your Run Button At The Menu Strip. You Can Type Whatever Code You Want To Run...

environ 7 ans il y a | 0

Réponse apportée
How to make multiple variables equal a class?
Take A Look At classdef documentation Also Worth mentioning That For Proper Polymorphic Behaviour In Matlab, your Base class Ne...

environ 7 ans il y a | 0

Réponse apportée
Undefined function 'plus' for input arguments of type 'cell'.
varargin is a cell array when you index a cell array using parentheses you get a cell array back, i.e: c = {1 2 3}; a = c(1)...

environ 7 ans il y a | 1

Réponse apportée
many plots in object oriented way
you can use a class, but I don't see how it will be better than a single function in your case function plotMyData(figIndex, se...

environ 7 ans il y a | 1

Réponse apportée
how can i fix this? im new and need your help. it just calculate firs two rows of days between Days>=0 && Days<=7.
to calculate distances you can use distance if you have Mapping or Antenna toolboxes, otherwise this one looks verry promising. ...

environ 7 ans il y a | 0

| A accepté

A résolu


Create logical matrix with a specific row and column sums
Given two numbers *|n|* and *|s|*, build an |n-by-n| logical matrix (of only zeros and ones), such that both the row sums and th...

environ 7 ans il y a

A résolu


Generate N equally spaced intervals between -L and L
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. F...

environ 7 ans il y a

Réponse apportée
how to make the process of reading images from the folder, be automatic?
your problem is you're trying to change the value of the loop index k inside the loop. that doesn't do anything because matlab ...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
How can I add element in cell array?
This sort of operations is best performed on matrices and not cell arrays So it's better to transform your cell array into a ma...

environ 7 ans il y a | 2

| A accepté

Réponse apportée
Creating a function that returns multiple graphs
function [h1,h2] = myplot(data, nbins) h1 = histogram(data,nbins); h2 = histogram(data,nbins); end % Or: functi...

environ 7 ans il y a | 0

Réponse apportée
Creating an array of sums of another array.
n = 18; %n = 322872 in your case windowSize = 5;% n = 730 in your case % generate vector of size n x = round(rand(1,n) * 10...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
How to resize ui controls laye-out inside a container
Ok, so I sort of sorted it out... Theres another package in that toolkit: uiextras, which i wasn't aware of... the Sizes prope...

environ 7 ans il y a | 1

| A accepté

Question


How to resize ui controls laye-out inside a container
I'm using the GUI Layout ToolboxGUI Layout Toolbox from file exchange to organize a complex GUI hierarchically. I tried to lay ...

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

1

réponse

Réponse apportée
How to create a function that lets me choose the output (euler,Rk2 or Rk4)?
Easiest Solution Would Be: function x = solveDiffEq(k, M, step, D, method) if nargin < 5; method = 'euler'; end ...

environ 7 ans il y a | 0

Réponse apportée
Creating a matrix one row at a time
A(i,:) = Y; Don't Forget To Preallocates Your Matrix: A = zeros(n, m); Where n Would Be The Number Of Rows ( Iterations) And ...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Hi. . I have datas in .csv file and i want to plot spectrogram of the data. Total 6000 data samples for 6 channel data. I want to individually plot the all the datas. i have attached the sample data file for the reference. Kindlt help to resolve.
figure(); hold on; data = readtable('4khz_4.csv', 'HeaderLines', 7, 'Delimiter', ','); for i = 0:5 channel = data.(['CHA...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
How can I plot the interpolation of a set of points whose x coordinates range from [-pi, pi] without having the line to go back and forth the figure (which has the axis from - pi to pi)?
how about something like that: figure(1); hold on; currIdx = 1; for i = [find(abs(diff(longitude')) > 10), length(longitude)...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
how to 7004829X1 into 5000X1 blocks?
You can either generate a matrix with each column representing one 1400 part vector as you specified, or generate a cell array, ...

environ 7 ans il y a | 0

Réponse apportée
How to loop through a folder of ifiles in Matlab
I Have No Idea What Is This ifile format. But This File Exchange Seems Exactly Like What You're Looking For: https://www.mathwo...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Popup an image before matlab runtime runs
In the compiler there should be an option for adding a splash screen image https://www.mathworks.com/help/releases/R2014a/compi...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Create numerical table from text file
text = fileread('example.txt'); % extract data match = regexpi(text, '(?<key>(Elsasser\s*Number)|(Lorentz\s*Number)|(Power\s...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
Do I have the Global Optimization Toolbox?
license('checkout', 'Optimization_Toolbox') It might also be overriden somewhere in your matlab search path, run this to make ...

environ 7 ans il y a | 0

Réponse apportée
How to count the number of elements of a cell having string and integers?
because you have multiple types, most likely you will need to either selectively change to a uniforrm data type at the begining ...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Plotting P-v graph using function file
v = zeros(1, length(In1)); for i = 1:length(In1) v(i) = SteamIC('vV_p', In1(i)); end or the shorter version using arrayf...

environ 7 ans il y a | 0

| A accepté

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

environ 7 ans il y a

A résolu


We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

environ 7 ans il y a

A résolu


Piecewise linear interpolation
Given an Mx2 vector and a row of M-1 integers, output a two column vector that linearly interpolates Y times between each succes...

environ 7 ans il y a

Charger plus