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

7 years ago | 0

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

7 years ago | 0

| accepted

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

7 years ago | 0

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

7 years ago | 0

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

7 years ago | 0

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

7 years ago | 1

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

7 years ago | 1

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

7 years ago | 0

| accepted

Solved


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

7 years ago

Solved


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

7 years ago

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

7 years ago | 0

| accepted

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

7 years ago | 2

| accepted

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

7 years ago | 0

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

7 years ago | 0

| accepted

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

7 years ago | 1

| accepted

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

7 years ago | 1 answer | 0

1

answer

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

7 years ago | 0

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

7 years ago | 0

| accepted

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

7 years ago | 0

| accepted

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

7 years ago | 0

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

7 years ago | 0

| accepted

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

7 years ago | 0

| accepted

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

7 years ago | 1

| accepted

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

7 years ago | 0

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

7 years ago | 0

| accepted

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

7 years ago | 0

| accepted

Solved


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

7 years ago

Solved


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

7 years ago

Solved


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

7 years ago

Load more