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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

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

más de 7 años hace | 0

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

más de 7 años hace | 1

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

más de 7 años hace | 1

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

más de 7 años hace | 0

| aceptada

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 2

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 1

| aceptada

Pregunta


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

más de 7 años hace | 1 respuesta | 0

1

respuesta

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Cargar más