Answered
How to display multiple calculated results in static text matlab GUI?
text19 only shows the last line of results because that's what you're setting its 'String' to be. If you want it to show all res...

4 years ago | 1

| accepted

Answered
how to distinguish between four zeros in matlab plotting
Something like this? % get some complex numbers, z: f = [1 2 3 4 5]; z = roots(f) % plot z on the complex plane and label th...

4 years ago | 0

| accepted

Answered
Text file I/O
Try this (and see the comments for explanation): function charnum = char_counter(fname,character) fid = fopen(fname); % open...

4 years ago | 0

| accepted

Answered
How to group values in a vector based on certain condition?
If the sub-sequence always starts with a 1 and ends with a 5, you could do this: row = [1; 2; 3; 4; 5; 1; 1; 2; 3; 4; 5; 5; 1; ...

4 years ago | 0

| accepted

Answered
Binary numbers into array
Depending on what exactly you're after, one of these two very similar ways may work: n = '21325231214523234322'; ret = { ... ...

4 years ago | 0

Answered
How to plot elliptic function (x,y,z) in MATLAB
% 0<=x<=2 and 0<=y<=2 x = linspace(0,2,20); y = linspace(0,2,20); [X,Y] = meshgrid(x,y); % x^2+y^2+z=16 Z = 16-X.^2-Y.^2; ...

4 years ago | 0

Answered
convert a time series into a real time animated plot
Here's one way: load('timeseries.mat') figure(); my_line = line(); for ii = 1:numel(time2.Time) set(my_line,'XData',tim...

4 years ago | 0

Answered
Split array into subarrays
How about if you put each 50x1 array into its own column of a 50x4 matrix: raw_data = (1:200).' data_to_use = reshape(raw_data...

4 years ago | 0

Answered
How to skip reading column in Matlab
% I have a Y = 2464 * 220 matrix Y = (0:2464-1).'+(1:220) % and I want to do the following things % 1)first read the first t...

4 years ago | 1

Answered
How do I group excel data by a keyword?
t = readtable('Alaska_1418.xlsx') [G,group_ID] = findgroups(t{:,4}) % make a cell array of tables, one for each group: n_grou...

4 years ago | 0

| accepted

Answered
Store values in cells based on their potition.
Calculate V at the same time as C, using the same indices dervied from the first row of A, but applied to the second row: (Usin...

4 years ago | 0

| accepted

Answered
Anonymous functions usage when running the following program to apply and then plot a prediction, sensor reading and measurement update Invalid expression.
applyMeasurementUpdate is an anonymous function defined to take two inputs, sensorReading and belBar: applyMeasurementUpdate = ...

4 years ago | 0

Answered
Finding points in specific intervall and delete the ones not in this intervall
load('question.mat') [max_YWerte, max_XWerte] = findpeaks(Betrag_Ableitung, t(index_1:index_2-1), "MinPeakHeight",20); figure(...

4 years ago | 0

| accepted

Answered
Calculation problem. it gives value instead of array
Try using element-wise division ( ./ ) and see if that gives you the expected result. fi = 20:pi/30:60; r1 = 0.40; r2 = 2; r...

4 years ago | 1

| accepted

Solved


Cell Source Index
Suppose that C is a cell array whose elements consist of row vectors of elements of the same type. For example, C could be a ce...

4 years ago

Answered
How to synthesise discrete signal?
n = 0:819; x = 1.23.^-n; stem(n,x) xlim([0 20]) % just look at the beginning

4 years ago | 0

| accepted

Answered
Why is the size of my array changing when calculating velocity from the position formula?
Each element of v is calculated from two elements from y and two elements from t. Which is to say, each element of v is calculat...

4 years ago | 0

Answered
Problem with a loop
repeat = 'yes'; while strcmpi(repeat,'yes') % use strcmpi for case-insensitive comparison while true % keep looping until ...

4 years ago | 1

| accepted

Answered
Matlab gui control slider callback function
%%slider function posuvnik_Callback(hObject, eventdata, handles) pozslid=round(get(handles.posuvnik,'Value'),0); imagesc(h1,m...

4 years ago | 0

| accepted

Answered
First axes in overlaid figure tiles are not visible
I am unable to check this with your data because variables lat, lon and hist_heat_map are still missing from the linked mat file...

4 years ago | 0

Answered
I am trying to create this matrix ; How can i do this using for loops or without loops?
Here's one way without loops (just typing the matrix out): A=[1 1 1 0 0 0 0 0 0; 1 1 1 1 1 1 0 0 0 ; 1 1 1 1 1 1 1 1 1 ]; But ...

4 years ago | 0

| accepted

Answered
Add a number to a region of cells bounded by nonzero numbers in a matrix
Here's one way: A = [0 0 0 0 0 0 0 0 0 0; 0 0 0 0 3 9 2 1 3 0; 0 0 2 4 1 0 0 0 0 0; 0 0 3 3 2 4 9 2 0 0; ...

4 years ago | 1

Answered
What is the error here?
There are some syntax errors. clear all clc; alfa=0.5; bet=2; lan=1; teta=2; mu=0.5; n=4; k=2; s=0; syms u ...

4 years ago | 0

Answered
How to resolve issue while dealing with larger matrices?
As @Arif Hoq points out, the problem is not with the size of the matrices. The problem is that the elements of P are not guarant...

4 years ago | 1

Answered
How do I loop and save columns from a cell array as a double?
You don't want 19 separate variables. Just make another cell array. S = load('cell_of_doubles.mat'); S.cell_of_double_balls %...

4 years ago | 0

| accepted

Answered
Can I convert RGB pixel values to Letters in an Image?
I'm not sure if this is what you're going for, but if not, it may contain something useful. It's simply labeling each pixel with...

4 years ago | 1

| accepted

Answered
I am looking to create a table of data calculated within a while loop to get values that satisfy certain requirements.
Please see below. all_results is the matrix I put in to store the M and r each time the condition is satisfied. (I also adjusted...

4 years ago | 0

Answered
How to convert excel column data into an array in MATLAB
It's really very fine and good to keep all your data in a matrix (called data, say), in this case with three columns, so that wh...

4 years ago | 0

| accepted

Answered
swapping two matrices with similar randomness
If you are in control of how the rearranging is done to both matrices, you can create a vector of random indices and then index ...

4 years ago | 0

Answered
use the same result in different callback in matlab app desinger
Let's say the first NumericEditField is called EditField1 and the second one is called EditField2, and their ValueChangedFcns ar...

4 years ago | 0

| accepted

Load more