Réponse apportée
how to display / recall data in matlab
Seems To Me Like What You Want Is To Keep Track Of All Your If Conditions With A Logical Index index = B > 40 & B < 80; % yo...

plus de 7 ans il y a | 0

Réponse apportée
Why does it become four number in a line?
you accessed a 2d matrix with linear indexing, If you want to retain the dimentions of your matrix use subscripts instead: A(:...

plus de 7 ans il y a | 0

Réponse apportée
How to code with gui
You Can Start By Reading About App Designer https://www.mathworks.com/help/matlab/creating_guis/create-a-simple-app-or-gui-us...

plus de 7 ans il y a | 0

Réponse apportée
MATLAB pause does not seem to work
I just encountered the exact same weird issue... aparently you can switch pause on and off, and i got some piece of code from s...

plus de 7 ans il y a | 1

Réponse apportée
How to plot data points in different colors depending on condition?
you can use the conditions to create logical index masks of your data and plot only the relevant data for each condition: f1=fi...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Gene Boundaries for Genetic Algorithm
data = randi(4, 1, 400); seq = 1:6; % if you mean the sum of that sequence you are looking for x = sum(seq, 2); if any(str...

plus de 7 ans il y a | 0

A soumis


Simple UI
This is an extension to the GUI layout toolbox which provides flow layout containers and some other stuff

plus de 7 ans il y a | 1 téléchargement |

0.0 / 5
Thumbnail

Question


Is is necessary to use set/get functions?
Is it still necessary to use the set/get methods to set/get the properties of UI components? fig = figure(); fig.Color = 'whit...

plus de 7 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
how can I save the selected from radio button in text file?
It realy depends on the design of your GUI do you have a submit button or do you capture the selection of the radio button? If...

plus de 7 ans il y a | 0

Réponse apportée
What is the decimal RGB scale used in Matlab called?
some functions like plot use color intensity values (between 0 and 1) to represent RGB values, instead of what you are used to a...

plus de 7 ans il y a | 1

Réponse apportée
Duplicating the rows and columns of image, without using imresize.
The image is black because you are displaying zeros You say that you want to duplicate the rows and columns - I assume you mean...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Extract values from double with for loop and calculate sum
Can also use accumarray to solve this one n = 10; xMax = 7; % generate the matrix as: [boolean, x, 1] % x is the column of...

plus de 7 ans il y a | 0

Réponse apportée
Best way to loop through multiple subfolders and run either script A or B depending on folder name?
path = 'Whatever path your study folder lies in'; folders = split(genpath(path), ';'); matchExpA = cellfun(@any, regexpi(folde...

plus de 7 ans il y a | 0

Réponse apportée
Difference in File Referencing
Without the Code We Can Only Speculate. But Using "File1.Tif'" generates A String Object While 'File1.Tif' Is A Character Array....

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Matlab function to take matrix as input and return elements in its four corners as output
I Don't See Any Particular Problem With That Line. The Problem Is Possibly That You Didn't Send Input Or Enough Input To corner...

plus de 7 ans il y a | 0

Réponse apportée
How to determine if object has a defined event
Best method I found was ismember('EventName', events(obj));

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
i have a martix A, i want missing numbers in the 2nd column as i explained? any help??
granted you always have 1:3 in the first column and values between 1 and 10 in the second: A = [1,3; 1,5; 1,6; 1,8; 1,10; 2,4; ...

plus de 7 ans il y a | 1

Réponse apportée
Profiling a variable within a function
G = @(t) (floor(t/300)+1)*10; f = @(t) 5*t + G(t); t = 1:899; plot(t,f(t));

plus de 7 ans il y a | 0

| A accepté

Question


How to determine if object has a defined event
Is there a way to determine if an object instance imlements an event like ismethod for methods and isprop for properties? I tri...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Help with textscan while reading misc data files
if you know how many lines you want to skip: fid = fopen('data.txt'); % your own filename comes in here a = cell2mat(textscan(...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How do I make function which gets as input arguments matrix of chars work?
Kevin's Answer Is Correct Of Course, But If that Was The Problem You Were Facing You Would Have Had A Different Error About Ind...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
implementing a script that asks f
input Function Documentation modulo Function Documentation, Or You Can Search In Google And Find At Least Half A Dozen Links ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Stem plot inside a for loop
I didn't use your data because I have no idea what you want from it if exist('fig1', 'var') && ishandle(fig1) close(fig1);...

plus de 7 ans il y a | 0

Réponse apportée
How to output function results over split columns
Figured it out... the problem is you use the end operator with a matrix that's not asigned yet or when you do preset it to a d...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to merge a set of struct files?
files = dir('data_*.mat'); % based on the names of the files you supplied c = cell(1,numel(files)); for i = 1:numel(files) ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How can i detect max value and his index ?
If you meant to split the array into subarrays according to locations of NaN, then find maximal values of each subarray but the ...

plus de 7 ans il y a | 1

Réponse apportée
Transferring .mat files to workspace
Use dir Function To Loop Through All The Files And Load Them fileList = dir('Your_path_goes_here'); data = cell(); for fi =...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Adding Bias To Random Walk
you can make a step & bias vector: stepCoordinates = [1,0;0,1;-1,0;0,-1]; % this creates the bias to the north bias = [ones(1...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to solve "Not Enough Input Arguments" Error?
you probably just ran the function using F5, didn't you? the function works, you just need to invoke it properly: A = pascal_t...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
GUI slider problem in edit_text
you can add a utility function that takes in the new value and sets it in the appropriate variable, and gets a list of controls ...

plus de 7 ans il y a | 0

Charger plus