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

fast 8 Jahre vor | 0

Beantwortet
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);...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
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);

fast 8 Jahre vor | 0

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

fast 8 Jahre vor | 0

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

fast 8 Jahre vor | 0

Beantwortet
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)...

fast 8 Jahre vor | 1

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

fast 8 Jahre vor | 1

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

fast 8 Jahre vor | 0

| akzeptiert

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

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

fast 8 Jahre vor | 0

| akzeptiert

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

fast 8 Jahre vor | 2

| akzeptiert

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

fast 8 Jahre vor | 0

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

fast 8 Jahre vor | 0

| akzeptiert

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

fast 8 Jahre vor | 1

| akzeptiert

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

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

fast 8 Jahre vor | 0

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

fast 8 Jahre vor | 0

| akzeptiert

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

fast 8 Jahre vor | 1

| akzeptiert

Beantwortet
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)...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
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, ...

fast 8 Jahre vor | 0

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

fast 8 Jahre vor | 0

| akzeptiert

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

fast 8 Jahre vor | 0

| akzeptiert

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

fast 8 Jahre vor | 1

| akzeptiert

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

fast 8 Jahre vor | 0

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

fast 8 Jahre vor | 0

| akzeptiert

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

fast 8 Jahre vor | 0

| akzeptiert

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Gelöst


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

fast 8 Jahre vor

Mehr laden